KoTextObject::UndoRedoInfo Struct Reference
The undo-redo structure holds the _temporary_ information for the current undo/redo command. More...
#include <kotextobject.h>
Collaboration diagram for KoTextObject::UndoRedoInfo:

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 |
QValueList< 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 520 of file kotextobject.h.
The documentation for this struct was generated from the following files: