InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITrackChangeUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michele Goodwin
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ITRACKCHANGEUTILS__
25 #define __ITRACKCHANGEUTILS__
26 
27 // ----- Interfaces -----
28 #include "IInterfaceColors.h"
29 
30 // ----- Includes -----
31 #include "redlineiterator.h"
32 
33 // ----- Utility files -----
34 #include "WideString.h"
35 
36 // ----- ID.h files -----
37 #include "InCopySharedID.h"
38 
39 
40 class ITextModel;
41 
48 {
49 public:
50  enum { kDefaultIID = IID_ITRACKCHANGEUTILS };
51 
56  virtual bool16 MarkAnyChanges() = 0;
57 
63  virtual bool16 MarkDeleteChanges() = 0;
64 
70  virtual bool16 MarkInsertChanges() = 0;
71 
77  virtual bool16 MarkMoveChanges() = 0;
78 
84  virtual bool16 ShowChangeBars() = 0;
85 
93 
101 
108  virtual int32 GetTrackedChangeMarking(IDataBase *db, RedlineIterator *iterator) = 0;
109 
117  virtual UIDRef GetDeletedText(ITextModel* textModel, TextIndex anchorPosition, WideString& newString) = 0;
118 
126  virtual UIDRef GetDeletedText(ITextModel* textModel, TextIndex anchorPosition, PMString& newString) = 0;
127 
132  virtual UIDRef GetActiveStoryRef() = 0;
133 
138  virtual bool16 ActiveStoryHasChanges() = 0;
139 
146  virtual bool16 ActiveStoryHasChangesHidden() = 0;
147 
153  virtual bool16 StoryHasChanges(UIDRef storyRef) = 0;
154 
162  virtual bool16 StoryHasChangesHidden(UIDRef storyRef) = 0;
163 
172  virtual bool16 RangeHasChanges(UIDRef storyRef, TextIndex startIndex, TextIndex endIndex, bool16 convertedRange) = 0;
173 
182  virtual TextIndex DeletedTextToPrimaryIndex(ITextModel* textModel, TextIndex withinDeletedTextIndex, TextIndex* threadStart = nil, int32* threadSpan = nil) = 0;
183 
192  virtual bool16 PrimaryIndexToDeletedText(ITextModel* textModel, TextIndex withinPrimaryIndex, TextIndex* threadStart = nil, int32* threadSpan = nil) = 0;
193 
194 #ifdef DEBUG
195 
199  virtual bool16 ToggleTrackChangeDisplay() = 0;
200 #endif
201 };
202 
203 #endif // __ITRACKCHANGEUTILS__