InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
redlineiterator.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Eric Menninga
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef __RedlineIterator__
28 #define __RedlineIterator__
29 
30 #include "IPMFont.h"
31 
32 class VOSRedlineChange;
33 class VOS_RedlineObject;
34 class RangeData;
35 
52 {
53  public:
55  virtual ~RedlineIterator();
56 
59  virtual void MoveToBeginning();
66  virtual bool16 MoveToPosition(TextIndex t, int32 c = -1) = 0;
72  virtual TextIndex GetCurrentPosition(int32 *changePos = nil, int32 *numChanges = nil) = 0;
78  virtual int32 GetCurrentLength() = 0;
79 
87  virtual bool16 ProcessAccept(const RangeData* range = nil, bool16 doingAcceptAll = kFalse, bool16 restoreSelection = kFalse);
95  virtual bool16 ProcessReject(const RangeData* range = nil, bool16 doingRejectAll = kFalse, bool16 restoreSelection = kFalse);
96 
104  virtual bool16 ProcessAcceptIncrement(const RangeData* range = nil, bool16 doingAcceptAll = kFalse, bool16 restoreSelection = kFalse);
112  virtual bool16 ProcessRejectIncrement(const RangeData* range = nil, bool16 doingRejectAll = kFalse, bool16 restoreSelection = kFalse);
120  virtual bool16 ProcessRejectDecrement(const RangeData* range = nil, bool16 doingRejectAll = kFalse, bool16 restoreSelection = kFalse);
126  virtual bool16 Increment(bool16 skipUnchanged) = 0;
132  virtual bool16 Decrement(bool16 skipUnchanged) = 0;
133 
142  virtual const VOSRedlineChange* GetCurrentChangeRecord(TextIndex *pPosition = nil, int32 *pLength = nil);
146  virtual const VOS_RedlineObject* QueryCurrentObject();
147 
151  virtual void DescribeUser(PMString& user);
158  virtual void DescribeType(PMString& type);
162  virtual void DescribeTimeStamp(PMString& time);
169  virtual UIDRef DescribeChangeContent(PMString& detail, int32 maxLength = 32);
170 };
171 
172 #endif // __RedlineIterator__
173