void notifyCursorPosChanged(int pos, int anchor)
Notify that the cursor position has changed.
KoSvgTextShapeMementoSP getMemento()
Get a memento holding the current textdata and layout info.
void setMemento(const KoSvgTextShapeMementoSP memento)
Set the text data and layout info, reset listening cursors to 0.
QRectF boundingRect() const override
Get the bounding box of the shape.
void cleanUp()
Cleans up the internal text data. Used by undo commands.
int posForIndex(int index, bool firstIndex=false, bool skipSynthetic=false) const
posForIndex Get the cursor position for a given index in a string.
bool removeText(int &index, int &length)
removeText Where insert text explicitly uses a cursorposition, remove text uses a string index....
void undo() override
revert the actions done in redo
KoSvgTextShapeMementoSP m_textData
SvgTextRemoveCommand(KoSvgTextShape *shape, int endIndex, int pos, int anchor, int length, bool allowCleanUp=true, KUndo2Command *parent=0)
SvgTextRemoveCommand Remove text from shape.
bool mergeWith(const KUndo2Command *other) override