InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextRangeItem.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jianlan Song
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 __ITEXTRANGEITEM__
25 #define __ITEXTRANGEITEM__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 
30 #include "ITextModelMemento.h"
31 #include "itextRangeNode.h"
32 #include "RangeData.h"
33 #include "IScript.h"
34 
35 class ITextModel;
36 class IParcelList;
37 class IWaxLine;
38 class IWaxRun;
39 
40 
47 class ITextRangeItem : public IPMUnknown
48 {
49  public:
50  enum { kDefaultIID = IID_ITEXTRANGEITEM };
51 
63  virtual ICommand * QueryRemoveFromDocumentCmd() const = 0;
64 
70  virtual ITextModelMemento* QueryMemento() const = 0;
71 
72  virtual void SetRangeReference(TextRangeReference reference) = 0;
73 
80  virtual bool16 CanReturnIScript() const = 0;
81 
88  virtual IScript* QueryIScript() const = 0;
89 
104  virtual void Rebuilt(ITextModel* textModel,
105  IParcelList* pl,
106  const IWaxLine* waxLine,
107  IWaxRun* waxRun,
108  const RangeData& textRangeItemRange,
109  TextIndex waxLineTextIndex) = 0;
110 
111 };
112 
113 
114 #endif // __ITEXTRANGEITEM__
115