Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextRemoveTransformsFromRange.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
9
11 : KUndo2Command(parent)
12 , m_shape(shape)
13 , m_pos(pos)
14 , m_anchor(anchor)
15 , m_textData(shape->getMemento())
16{
17 setText(kundo2_i18n("Remove Character Transforms"));
18}
19
29
void setText(const KUndo2MagicString &text)
static void bulkShapesUpdate(const UpdatesList &updates)
void notifyCursorPosChanged(int pos, int anchor)
Notify that the cursor position has changed.
void removeTransformsFromRange(const int startPos, const int endPos)
void setMemento(const KoSvgTextShapeMementoSP memento)
Set the text data and layout info, reset listening cursors to 0.
int indexForPos(int pos) const
indexForPos get the string index for a given cursor position.
int posForIndex(int index, bool firstIndex=false, bool skipSynthetic=false) const
posForIndex Get the cursor position for a given index in a string.
SvgTextRemoveTransformsFromRange(KoSvgTextShape *shape, int pos, int anchor, KUndo2Command *parent=nullptr)
KUndo2MagicString kundo2_i18n(const char *text)