| 605 | } |
| 606 | |
| 607 | void SvgTextCursor::insertText(QString text) |
| 608 | { |
| 609 | |
| 610 | if (d->shape) { |
| 611 | //KUndo2Command *parentCmd = new KUndo2Command; |
| 612 | if (hasSelection()) { |
| 613 | SvgTextRemoveCommand *removeCmd = removeSelectionImpl(false); |
| 614 | addCommandToUndoAdapter(removeCmd); |
| 615 | } |
| 616 | |
| 617 | SvgTextInsertCommand *insertCmd = new SvgTextInsertCommand(d->shape, d->pos, d->anchor, text); |
| 618 | addCommandToUndoAdapter(insertCmd); |
| 619 | |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | void SvgTextCursor::insertRichText(KoSvgTextShape *insert, bool inheritPropertiesIfPossible) |
| 624 | { |
no test coverage detected