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

#include <IInvalHandler.h>

Inheritance diagram for IInvalCookie:
GTTxtEdtInvalCookie

Public Member Functions

virtual ~IInvalCookie ()
 
virtual void Merge (const IInvalCookie *other)=0
 
virtual void InvalBeforeUndo ()=0
 
virtual void InvalAfterUndo ()=0
 
virtual void InvalBeforeRedo ()=0
 
virtual void InvalAfterRedo ()=0
 

Detailed Description

An inval cookie is an object that is called at undo and redo. It is created by an inval handler (see IInvalHandler) and called when an undoable transaction on a database is undone or redone.

See Also
IInvalHandler

Constructor & Destructor Documentation

virtual IInvalCookie::~IInvalCookie ()
inlinevirtual

virtual destructor Inval cookies are destructed by the database when they are no longer referenced by the change history.

Member Function Documentation

virtual void IInvalCookie::InvalAfterRedo ()
pure virtual

Provide an implementation of this function that performs changes that will occurr after redo.

Implemented in GTTxtEdtInvalCookie.

virtual void IInvalCookie::InvalAfterUndo ()
pure virtual

Provide an implementation of this function that performs changes that will occurr after undo.

Implemented in GTTxtEdtInvalCookie.

virtual void IInvalCookie::InvalBeforeRedo ()
pure virtual

Provide an implementation of this function that performs changes that will occurr before redo.

Implemented in GTTxtEdtInvalCookie.

virtual void IInvalCookie::InvalBeforeUndo ()
pure virtual

Provide an implementation of this function that performs changes that will occurr before undo.

Implemented in GTTxtEdtInvalCookie.

virtual void IInvalCookie::Merge (const IInvalCookieother)
pure virtual

This function is called by the database to merge two inval cookies when the former decides the two cookies will be part of the same undoable step. Provide an implementation of this function that merges the

Parameters
other)cookie into 'this' cookie.
other

Implemented in GTTxtEdtInvalCookie.