![]() | InDesign SDK 20.5 |
#include <GTTxtEdtInvalHandler.h>

Public Member Functions | |
| GTTxtEdtInvalCookie (const UIDRef &storyUIDRef, bool16 storyCreated) | |
| virtual | ~GTTxtEdtInvalCookie () |
| void | InvalBeforeUndo () |
| void | InvalAfterUndo () |
| void | InvalBeforeRedo () |
| void | InvalAfterRedo () |
| void | Merge (const IInvalCookie *other) |
| void | AddNewCookieCrumb (const UIDRef &storyUIDRef, bool16 storyCreated) |
| bool16 | IsUndoRequired () |
Public Member Functions inherited from IInvalCookie | |
| virtual | ~IInvalCookie () |
A cookie that allows us to re-attach or re-detach our story edit observer across story create/delete undo/redo events.
| GTTxtEdtInvalCookie::GTTxtEdtInvalCookie | ( | const UIDRef & | storyUIDRef, |
| bool16 | storyCreated | ||
| ) |
Constructor
| virtual |
Destructor
| void GTTxtEdtInvalCookie::AddNewCookieCrumb | ( | const UIDRef & | storyUIDRef, |
| bool16 | storyCreated | ||
| ) |
Add a new cookie crumb to the invalidation.
| storyUIDRef | IN the uidref of the story affected. |
| storyCreated | IN kTrue if the story was created, kFalse if it was deleted. |
| virtual |
Invalidation after redo. Called after the redo of a sequence that this cookie has an association with.
Implements IInvalCookie.
| virtual |
Invalidation after undo. Called after the undo of a sequence that this cookie has an association with.
Implements IInvalCookie.
| virtual |
Invalidation before redo. Called before the redo of a sequence that this cookie has an association with.
Implements IInvalCookie.
| virtual |
Invalidation before undo. Called before the undo of a sequence that this cookie has an association with.
Implements IInvalCookie.
| bool16 GTTxtEdtInvalCookie::IsUndoRequired | ( | ) |
Returns kTrue if the cookie needs to be called on undo / redo, kFalse otherwise.
| virtual |
Called to merge the cookies when multiple cookies generated within the same transaction. For example, say there is an abortable command sequence (see IAbortableCmdSeq). For each call to CmdUtils::SetSequenceMark within the sequence the IInvalHandler::EndCollectingInvals method is called, so a separate cookie can be generated per sequence mark. At the end of the sequence these cookies are merged together into one cookie through this method.
| other |
Implements IInvalCookie.