InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextStoryThread.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: dwaterfa
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 __ITextStoryThread__
25 #define __ITextStoryThread__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 
30 #include "RequestContext.h"
31 
32 class IFrameList;
33 class IParcelList;
34 class IParcel;
35 class IScript;
36 class ITextModel;
37 class AttributeBossList;
38 
67 {
68  public:
69  enum { kDefaultIID = IID_ITEXTSTORYTHREAD };
70 
75  virtual IParcelList* QueryParcelList() const = 0;
76 
81  virtual UID GetDictUID() const = 0;
82 
83  /*
84  The Dictionary Key is unique only with respect to the parent dictionary boss, not other parent dictionaries.
85  @return key assigned by parent dictionary boss.
86  */
87  virtual uint32 GetDictKey() const = 0;
88 
94  virtual TextIndex GetTextStart(int32 *pSpan = nil) const = 0;
95 
101  virtual TextIndex GetTextEnd(TextIndex *pStart = nil) const = 0;
102 
108  virtual int32 GetTextSpan(TextIndex *pStart = nil) const = 0;
109 
114  virtual ITextModel* QueryTextModel() const = 0;
115 
120  virtual UID GetTextStyle() const = 0;
121 
127  virtual IScript* QueryParent(const ScriptInfo::RequestContext& context) const = 0;
128 
136  virtual TextIndex GetAdjustedTextStart(const ScriptInfo::RequestContext& context, int32 *pAdjustedSpan) const = 0;
137 
138 };
139 
140 #endif // __ITextStoryThread__