InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HidTxtMemento Class Reference
Inheritance diagram for HidTxtMemento:
CPMUnknown< ITextModelMemento >ITextModelMementoIPMUnknown

Public Member Functions

 HidTxtMemento (IPMUnknown *boss)
 
virtual ~HidTxtMemento ()
 
virtual UID GetAssociatedUID () const
 
virtual ErrorCode OnDelete (const UIDRef &story, TextIndex dataStart, int32 dataLen, const Text::StoryRangeList &subranges, K2Vector< InterfacePtr< ICommand > > &cmdList)
 
virtual ErrorCode OnCut (const UIDRef &story, TextIndex dataStart, int32 dataLen, const Text::StoryRangeList &subranges)
 
virtual ErrorCode OnCopyRange (PasteData *context)
 
virtual ErrorCode OnReplace (const UIDRef &story, TextIndex dataStart, int32 dataLen, int32 replaceDataLen, const Text::StoryRangeList &subranges, K2Vector< InterfacePtr< ICommand > > &cmdList)
 
virtual ErrorCode TransferTo (PasteDataXRefContext *xRefContext)
 
virtual ErrorCode OnPaste ()
 
virtual bool16 MustHandleReplaceIndividually ()
 
- Public Member Functions inherited from CPMUnknown< ITextModelMemento >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Public Types inherited from ITextModelMemento
enum  { kDefaultIID = IID_ITEXTMODELMEMENTO }
 
- Protected Member Functions inherited from CPMUnknown< ITextModelMemento >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< ITextModelMemento >
HelperInterface fHelperInterface
 

Detailed Description

Implements the memento (ITextModelMemento) that manages the hidden text (kHidTxtModelBoss) owned item when it is affected by text model operations. For example they allow the kHidTxtModelBoss object and its associated story thread to be deleted when the TextIndex on which the hidden text is anchored gets deleted.

See Also
ITextModelMemento

Constructor & Destructor Documentation

HidTxtMemento::HidTxtMemento (IPMUnknownboss)

Constructor.

Parameters
bossrefers to boss class on which this interface is aggregated
HidTxtMemento::~HidTxtMemento ()
virtual

Desructor.

Member Function Documentation

UID HidTxtMemento::GetAssociatedUID () const
virtual
bool16 HidTxtMemento::MustHandleReplaceIndividually ()
virtual
ErrorCode HidTxtMemento::OnCopyRange (PasteDatacontext)
virtual
ErrorCode HidTxtMemento::OnCut (const UIDRefstory,
TextIndex dataStart,
int32 dataLen,
const Text::StoryRangeListsubranges 
)
virtual
ErrorCode HidTxtMemento::OnDelete (const UIDRefstory,
TextIndex dataStart,
int32 dataLen,
const Text::StoryRangeListsubranges,
K2Vector< InterfacePtr< ICommand > > & cmdList 
)
virtual
ErrorCode HidTxtMemento::OnPaste ()
virtual
ErrorCode HidTxtMemento::OnReplace (const UIDRefstory,
TextIndex dataStart,
int32 dataLen,
int32 replaceDataLen,
const Text::StoryRangeListsubranges,
K2Vector< InterfacePtr< ICommand > > & cmdList 
)
virtual
ErrorCode HidTxtMemento::TransferTo (PasteDataXRefContextxRefContext)
virtual