InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAutoUndoSequence Class Referenceabstract

#include <ICommandSequence.h>

Public Member Functions

virtual const char * GetTrackingData ()=0
 

Detailed Description

An auto undo sequence wraps a set of changes targeted to a database and implements undo behavior identical to that of a command that has kAutoUndo undoability.

Use an auto undo sequence when your changes can never appear in an individual step on the undo menu (i.e. your changes always tag along with other changes that do appear on the undo menu).

To wrap a set of changes in an auto undo sequence use CmdUtils::BeginAutoUndoSequence to create the sequence before the changes are started and CmdUtils::EndAutoUndoSequence to end the sequence after the changes are done. You must provide a database target when creating the autoundo sequence.

See Also
CmdUtils::AutoUndoSequencePtr helper class for wrapping an auto undo sequence.

Member Function Documentation

virtual const char* IAutoUndoSequence::GetTrackingData ()
pure virtual

For internal use only