HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UndoBlock Class Reference

#include <UT_UndoBlock.h>

+ Inheritance diagram for UT_UndoBlock:

Public Member Functions

 UT_UndoBlock (const char *name, UT_UndoBlock *next=NULL)
 
 ~UT_UndoBlock ()
 
int isEmpty () const
 
void addUndo (UT_Undo *)
 
void setNestedBlockName (int level, const char *name)
 
const char * getNestedBlockName (int level) const
 
virtual void undo ()
 
virtual void redo ()
 
virtual int isUndoBlock () const
 
virtual bool needToUndo ()
 
virtual bool needToRedo ()
 
bool pruneInvalidUndos ()
 Free all invalid undos/redos. Returns true if any pruning was done. More...
 
virtual int64 getMemoryUsage ()
 
void clearContents ()
 
UT_UndoBlockgetNextBlock ()
 
const UT_UndoBlockgetNextBlock () const
 
void setNextBlock (UT_UndoBlock *b)
 
UT_UndoBlockrepairErrors ()
 
void debugPrint (int indent=1) const
 
exint getSuspendId () const
 
void setSuspendId (exint id)
 
- Public Member Functions inherited from UT_Undo
 UT_Undo ()
 
virtual ~UT_Undo ()
 
virtual bool isValid ()
 
void addToMemoryUsage (int64 k)
 
void setMemoryUsage (int64 k)
 
void setNextUndo (UT_Undo *nundo)
 
UT_UndogetNextUndo ()
 

Additional Inherited Members

- Protected Member Functions inherited from UT_Undo
void generateTmpFilename (const char *prefix, UT_String &filename)
 

Detailed Description

Definition at line 25 of file UT_UndoBlock.h.

Constructor & Destructor Documentation

UT_UndoBlock::UT_UndoBlock ( const char *  name,
UT_UndoBlock next = NULL 
)
explicit
UT_UndoBlock::~UT_UndoBlock ( )

Member Function Documentation

void UT_UndoBlock::addUndo ( UT_Undo )
void UT_UndoBlock::clearContents ( )
void UT_UndoBlock::debugPrint ( int  indent = 1) const
virtual int64 UT_UndoBlock::getMemoryUsage ( )
virtual

Reimplemented from UT_Undo.

const char* UT_UndoBlock::getNestedBlockName ( int  level) const
inline

Definition at line 34 of file UT_UndoBlock.h.

UT_UndoBlock* UT_UndoBlock::getNextBlock ( )
inline

Definition at line 57 of file UT_UndoBlock.h.

const UT_UndoBlock* UT_UndoBlock::getNextBlock ( ) const
inline

Definition at line 58 of file UT_UndoBlock.h.

exint UT_UndoBlock::getSuspendId ( ) const
inline

Definition at line 71 of file UT_UndoBlock.h.

int UT_UndoBlock::isEmpty ( ) const
inline

Definition at line 31 of file UT_UndoBlock.h.

virtual int UT_UndoBlock::isUndoBlock ( ) const
inlinevirtual

Reimplemented from UT_Undo.

Definition at line 43 of file UT_UndoBlock.h.

virtual bool UT_UndoBlock::needToRedo ( )
virtual

Reimplemented from UT_Undo.

virtual bool UT_UndoBlock::needToUndo ( )
virtual

Reimplemented from UT_Undo.

bool UT_UndoBlock::pruneInvalidUndos ( )

Free all invalid undos/redos. Returns true if any pruning was done.

virtual void UT_UndoBlock::redo ( )
virtual

Implements UT_Undo.

UT_UndoBlock* UT_UndoBlock::repairErrors ( )
void UT_UndoBlock::setNestedBlockName ( int  level,
const char *  name 
)
void UT_UndoBlock::setNextBlock ( UT_UndoBlock b)
inline

Definition at line 59 of file UT_UndoBlock.h.

void UT_UndoBlock::setSuspendId ( exint  id)
inline

Definition at line 72 of file UT_UndoBlock.h.

virtual void UT_UndoBlock::undo ( )
virtual

Implements UT_Undo.


The documentation for this class was generated from the following file: