lib Library API Documentation

KoTextObject::UndoRedoInfo Struct Reference

The undo-redo structure holds the _temporary_ information for the current undo/redo command. More...

#include <kotextobject.h>

List of all members.

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
KoTextObjecttextobj
CustomItemsMap customItemsMap
QValueList< KoParagLayoutoldParagLayouts
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 476 of file kotextobject.h.


The documentation for this struct was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003