lib

KoTextObject::UndoRedoInfo Struct Reference

#include <KoTextObject.h>

List of all members.


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 552 of file KoTextObject.h.


Public Types

 Invalid
 Insert
 Delete
 Return
 RemoveSelected
enum  Type {
  Invalid, Insert, Delete, Return,
  RemoveSelected
}

Public Member Functions

 UndoRedoInfo (KoTextObject *textobj)
 ~UndoRedoInfo ()
void clear ()
bool valid () const

Public Attributes

KoTextString text
int id
int eid
int index
Type type
KoTextObjecttextobj
CustomItemsMap customItemsMap
QValueList< KoParagLayoutoldParagLayouts
KoParagLayout newParagLayout
KoTextCursorcursor
KMacroCommandplaceHolderCmd

The documentation for this struct was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys