InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITAObserverData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __ITAObserverData__
25 #define __ITAObserverData__
26 
27 #include "IPMUnknown.h"
28 #include "ShuksanID.h" // for IUNKNOWN
29 #include "TextPanelID.h"
30 
31 //----------------------------------------------------------------------------------------
32 // Class ITAObserverData
33 //----------------------------------------------------------------------------------------
34 
39 {
40  PMIID fControlID;
41  ClassID fAttrClass;
42  PMIID fAttrID;
43  ClassID fStrandID;
44  PMReal fMin;
45  PMReal fMax;
46  PMReal fToUIFactor;
47  bool16 fReset;
48  ClassID fRadioClass;
49  bool16 fUseMeasurement;
50  bool16 fReadOnly;
51  bool16 fSupportUnknownValues;
52 
53  inline TAObserverDataStruct() :
54  fControlID( IID_IUNKNOWN ),
55  fAttrClass( kInvalidClass ),
56  fAttrID( IID_IUNKNOWN ),
57  fStrandID( kInvalidClass ),
58  fMin(0.0), fMax(0.0), fToUIFactor(1.0),
59  fReset( kTrue ),
60  fRadioClass( kInvalidClass ),
61  fUseMeasurement( kFalse ),
62  fReadOnly( kFalse ),
63  fSupportUnknownValues( kFalse )
64  { }
65 };
66 
67 
72 {
73 public:
74  enum { kDefaultIID = IID_ITEXTATTROBSERVERDATA };
75 
81  virtual void SetControlID( const PMIID& nID ) = 0;
87  virtual PMIID GetControlID() const = 0;
88 
94  virtual void SetAttrClass( const ClassID &nClass ) = 0;
100  virtual ClassID GetAttrClass() const = 0;
101 
107  virtual void SetAttrID( const PMIID& nID ) = 0;
113  virtual PMIID GetAttrID() const = 0;
114 
120  virtual void SetStrandID( const ClassID &nID ) = 0;
126  virtual ClassID GetStrandID() const = 0;
127 
133  virtual void SetMinValue( PMReal nMin ) = 0;
139  virtual PMReal GetMinValue() const = 0;
140 
146  virtual void SetMaxValue( PMReal nMax ) = 0;
152  virtual PMReal GetMaxValue() const = 0;
153 
159  virtual void SetToUIFactor( PMReal nMax ) = 0;
165  virtual PMReal GetToUIFactor() const = 0;
166 
172  virtual void SetData( const TAObserverDataStruct &rData ) = 0;
173 
179  virtual void SetReset( bool16 bOn ) = 0;
185  virtual bool16 IsReset() const = 0;
186 
192  virtual void SetUseMeasurement( bool16 bUseMeasurement ) = 0;
198  virtual bool16 UseMeasurement() const = 0;
199 
205  virtual void SetReadOnly( bool16 bReadOnly ) = 0;
211  virtual bool16 IsReadOnly() const = 0;
212 
218  virtual void SetSupportUnknownValues( bool16 bSupportsUnknownValues ) = 0;
224  virtual bool16 DoesSupportUnknownValues() const = 0;
225 };
226 
227 #endif