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

Public Member Functions | |
| GTTxtEdtInvalHandler () | |
| virtual | ~GTTxtEdtInvalHandler () |
| void | AddStoryInvalInfo (const UIDRef &storyUIDRef, bool16 storyCreated) |
| IInvalCookie * | EndCollectingInvals () |
| InvalHandlerID | GetID () const |
| void | BeforeRevert_InvalAll () |
| void | AfterRevert_InvalAll () |
Public Member Functions inherited from IInvalHandler | |
| IInvalHandler () | |
| virtual | ~IInvalHandler () |
Additional Inherited Members | |
Public Types inherited from IInvalHandler | |
| enum | { kDefaultIID = IID_IINVALHANDLER } |
Called when a sequence completes for which this handler is recording invalidations. The inval handler will provide an instance of a cookie that is called on undo/redo.
| inline |
Constructor
| inlinevirtual |
Destructor
| void GTTxtEdtInvalHandler::AddStoryInvalInfo | ( | const UIDRef & | storyUIDRef, |
| bool16 | storyCreated | ||
| ) |
If in "not collecting invals" state, call DBUtils::StartCollectingInvals to see if an undoable transaction is in progress, switch to "collecting invals" if so, then record the UIDRef of the story plus the action. Otherwise, in "collecting invals" record the UIDRef of the story, and the action.
| storyUIDRef | IN the uidref of the story affected. |
| storyCreated | IN kTrue if the story was created, kFalse if it was deleted. |
| virtual |
Deals with the need to hard reset the cache (for example, if you only collect invals when a panel is showing, you need to use the reset mechanism if the user undos beyond the panel was shown).
Implements IInvalHandler.
| virtual |
Deals with the need to hard reset the cache (for example, if you only collect invals when a panel is showing, you need to use the reset mechanism if the user undos beyond the panel was shown).
Implements IInvalHandler.
| virtual |
The core indicates that the sequence we have declared an interest in (see the StartCollectingInvals call in the GTTxtEdtNewDeleteStoryObserver) has completed, giving us the opportunity to creare a cookie encapsulating the state we require for handling the undo/redo behaviour.
Implements IInvalHandler.
| virtual |
Return the inval handler ID for this invalidation handler.
Implements IInvalHandler.