24 #ifndef __IRedlineDataStrand__ 25 #define __IRedlineDataStrand__ 27 #include "IPMUnknown.h" 28 #include "InCopySharedID.h" 30 #include "VOSRedline.h" 39 enum { kDefaultIID = IID_IREDLINEDATASTRAND };
41 virtual bool16 DoSyncToStory(
UID story) = 0;
42 virtual UID GetTextModelUID()
const = 0;
44 virtual void ApplyRedlineChange(VOSRedlineChange::RedlineChangeType type, TextIndex position,
45 const uint64& time, bool16 moved, int32 len,
const PMString& user) = 0;
48 virtual void UndoChange(TextIndex pos,
RedlineChangeUndo *undo, int32 changeLen, bool16 inserted, bool16 undoReject) = 0;
52 virtual void DoAcceptRedlineChangeRange(TextIndex position, int32 len) = 0;
54 virtual void UndoAcceptRedlineChangeFront(TextIndex position, int32 len) = 0;
55 virtual void UndoAcceptRedlineChangeBack(TextIndex position, int32 len) = 0;
56 virtual void UndoAcceptRedlineChangeMiddle(TextIndex position, int32 len) = 0;
59 virtual void RemoveRedlineChange(TextIndex objPosition,
const VOSRedlineChange& changeToRemove) = 0;
61 virtual void ClearRedlineChanges(TextIndex objPosition) = 0;
75 kPhase_MovingStoryAndPreserve,
77 kPhase_XMLDeleteMarker,
78 kPhase_XMLInsertMarker,
79 kPhase_TrackConvertNote,
80 kPhase_ConvertingNote,
82 kPhase_IMEInsertResult,
86 virtual void PushPhase(RedlinePhase phase) = 0;
87 virtual void PopPhase() = 0;
88 virtual RedlinePhase CurrentPhase() = 0;
118 } ChangeStateTransition;