28 #include "HelperInterface.h" 29 #include "CPMUnknown.h" 30 #include "VOSSavedData.h" 31 #include "IStrandPastePiece.h" 58 virtual void StrandAttachedToStory(
UID textModelUID, int32 length);
59 virtual void StrandDetachedFromStory(
UID textModelUID);
70 virtual void CollectMementosForDelete(TextIndex pos, int32 len,
72 { CollectMementos(pos, len, list); }
73 virtual void CollectMementosForCut(TextIndex pos, int32 len,
75 { CollectMementos(pos, len, list); }
76 virtual void CollectMementosForCopyRange(TextIndex pos, int32 len,
77 MementoList& list)
const 78 { CollectMementos(pos, len, list); }
79 virtual void CollectMementosForReplace(TextIndex pos, int32 len,
81 { CollectMementos(pos, len, list); }
83 virtual void Delete(TextIndex startpos, int32 numchars);
84 virtual void Replace(
const boost::shared_ptr<ITextModel::ReplacementList >& replList, bool16 clearNonContinuingAttrs);
90 virtual void CollectMementos(TextIndex pos, int32 len,
91 MementoList& list)
const;
112 {
if (fVOSData)
delete fVOSData; }
117 virtual ClassID GetStrandClassID()
const 118 {
return fStrandID; }
120 virtual ErrorCode OnCopyRange()
121 {
return fVOSData? fVOSData->OnCopy() : kSuccess; }
124 {
return fVOSData? fVOSData->PreTransferTo(xRefC) : kSuccess; }
127 {
return fVOSData? fVOSData->TransferTo(xRefC) : kSuccess; }
129 virtual ErrorCode OnPaste()
130 {
return fVOSData? fVOSData->OnPaste() : kSuccess; }
135 virtual void SetStrandClassID(
ClassID strandID)
136 { fStrandID = strandID; }