InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextState.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: emenning
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 __ITextState__
25 #define __ITextState__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 
30 class AttributeBossList;
31 
32 
41 class ITextState: public IPMUnknown
42 {
43  public:
44  enum { kDefaultIID = IID_ITEXTSTATE };
45 
51  virtual bool16 HasStateInfoFor(UID charStrand, TextIndex pos) const = 0;
52 
58  virtual bool16 HasStateStyleFor(UID charStrand, TextIndex pos) const = 0;
59 
64  virtual TextIndex LastStateInfoFor() const = 0;
65 
68  virtual void ClearStateInfo() = 0;
69 
74  virtual bool16 WasDeleteState() const = 0;
75 
79  virtual void IsDeleteState(bool16 b) = 0;
80 
81 
87  virtual void ApplyToState(UID charStrandUID, TextIndex where, const AttributeBossList* over) = 0;
88 
94  virtual void ApplyToStateStyle(UID charStrandUID, TextIndex where, UID style) = 0;
95 
99  virtual UID GetStateStyle() const = 0;
100 
104  virtual const AttributeBossList* PeekStateOverrides() const = 0;
105 
109  virtual UID GetStateCharStrand() const = 0;
110 
114  virtual TextIndex GetStatePosition() const = 0;
115 };
116 
117 #endif
118  // __ITextState__
119