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 () override
 
int isEmpty () const
 
void addUndo (UT_Undo *)
 
void setNestedBlockName (int level, const char *name)
 
const char * getNestedBlockName (int level) const
 
void undo () override
 
void redo () override
 
int isUndoBlock () const override
 
bool needToUndo () override
 
bool needToRedo () override
 
bool pruneInvalidUndos ()
 Free all invalid undos/redos. Returns true if any pruning was done. More...
 
int64 getMemoryUsage () override
 
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 ( )
override

Member Function Documentation

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

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.

int UT_UndoBlock::isUndoBlock ( ) const
inlineoverridevirtual

Reimplemented from UT_Undo.

Definition at line 43 of file UT_UndoBlock.h.

bool UT_UndoBlock::needToRedo ( )
overridevirtual

Reimplemented from UT_Undo.

bool UT_UndoBlock::needToUndo ( )
overridevirtual

Reimplemented from UT_Undo.

bool UT_UndoBlock::pruneInvalidUndos ( )

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

void UT_UndoBlock::redo ( )
overridevirtual

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.

void UT_UndoBlock::undo ( )
overridevirtual

Implements UT_Undo.


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