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

#include <ITextModelMemento.h>

Inheritance diagram for ITextModelMemento:
IPMUnknownCPMUnknown< ITextModelMemento >HidTxtMemento

Public Types

enum  { kDefaultIID = IID_ITEXTMODELMEMENTO }
 

Public Member Functions

virtual UID GetAssociatedUID () const =0
 
virtual ErrorCode OnDelete (const UIDRef &story, TextIndex dataStart, int32 dataLen, const Text::StoryRangeList &subranges, K2Vector< InterfacePtr< ICommand > > &cmdList)=0
 
virtual ErrorCode OnCut (const UIDRef &story, TextIndex dataStart, int32 dataLen, const Text::StoryRangeList &subranges)=0
 
virtual ErrorCode OnCopyRange (PasteData *context)=0
 
virtual ErrorCode OnReplace (const UIDRef &story, TextIndex dataStart, int32 dataLen, int32 replaceDataLen, const Text::StoryRangeList &subranges, K2Vector< InterfacePtr< ICommand > > &cmdList)=0
 
virtual ErrorCode TransferTo (PasteDataXRefContext *xRefContext)=0
 
virtual ErrorCode OnPaste ()=0
 
virtual bool16 MustHandleReplaceIndividually ()=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

The Memento provides a mechanism for an entity that manages some resource, for example an OwnedItem, to understand the full context of and participate in TextModel operations that affect them. Further, they are REQUIRED to do the right thing in regards to their own existence depending on the particular TextModel operation.