#include <KoTextObject.h>
Public Types | |
| enum | Type { Invalid , Insert , Delete , Return , RemoveSelected } |
Public Member Functions | |
| UndoRedoInfo (KoTextObject *textobj) | |
| void | clear () |
| bool | valid () const |
Public Attributes | |
| KoTextString | text |
| int | id |
| int | eid |
| int | index |
| Type | type |
| KoTextObject * | textobj |
| CustomItemsMap | customItemsMap |
| TQValueList< KoParagLayout > | oldParagLayouts |
| KoParagLayout | newParagLayout |
| KoTextCursor * | cursor |
| KMacroCommand * | placeHolderCmd |
Detailed Description
The undo-redo structure holds the temporary information for the current undo/redo command.
For instance, when typing "a" and then "b", we don't want a command for each letter. So we keep adding info to this structure, and when the user does something else and we call clear(), it's at that point that the command is created. See also the place-holder command (in fact an empty macro-command is created right at the beginning, so that it's possible to undo at any time).
Definition at line 553 of file KoTextObject.h.
Member Enumeration Documentation
◆ Type
| enum KoTextObject::UndoRedoInfo::Type |
Definition at line 554 of file KoTextObject.h.
Constructor & Destructor Documentation
◆ UndoRedoInfo()
| KoTextObject::UndoRedoInfo::UndoRedoInfo | ( | KoTextObject * | textobj | ) |
Definition at line 254 of file KoTextObject.cpp.
◆ ~UndoRedoInfo()
|
inline |
Definition at line 556 of file KoTextObject.h.
Member Function Documentation
◆ clear()
| void KoTextObject::UndoRedoInfo::clear | ( | ) |
Definition at line 268 of file KoTextObject.cpp.
◆ valid()
| bool KoTextObject::UndoRedoInfo::valid | ( | ) | const |
Definition at line 263 of file KoTextObject.cpp.
Member Data Documentation
◆ cursor
| KoTextCursor* KoTextObject::UndoRedoInfo::cursor |
Definition at line 569 of file KoTextObject.h.
◆ customItemsMap
| CustomItemsMap KoTextObject::UndoRedoInfo::customItemsMap |
Definition at line 566 of file KoTextObject.h.
◆ eid
| int KoTextObject::UndoRedoInfo::eid |
Definition at line 562 of file KoTextObject.h.
◆ id
| int KoTextObject::UndoRedoInfo::id |
Definition at line 561 of file KoTextObject.h.
◆ index
| int KoTextObject::UndoRedoInfo::index |
Definition at line 563 of file KoTextObject.h.
◆ newParagLayout
| KoParagLayout KoTextObject::UndoRedoInfo::newParagLayout |
Definition at line 568 of file KoTextObject.h.
◆ oldParagLayouts
| TQValueList<KoParagLayout> KoTextObject::UndoRedoInfo::oldParagLayouts |
Definition at line 567 of file KoTextObject.h.
◆ placeHolderCmd
| KMacroCommand* KoTextObject::UndoRedoInfo::placeHolderCmd |
Definition at line 571 of file KoTextObject.h.
◆ text
| KoTextString KoTextObject::UndoRedoInfo::text |
Definition at line 560 of file KoTextObject.h.
◆ textobj
| KoTextObject* KoTextObject::UndoRedoInfo::textobj |
Definition at line 565 of file KoTextObject.h.
◆ type
| Type KoTextObject::UndoRedoInfo::type |
Definition at line 564 of file KoTextObject.h.
The documentation for this struct was generated from the following files:
