InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFormField.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tim Wright
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 __IFormField_h__
25 #define __IFormField_h__
26 
27 #include "IPMUnknown.h"
28 #include "PMString.h"
29 #include "PMPoint.h"
30 #include "FormFieldTypes.h"
31 #include "FormFieldID.h"
32 
33 //=============================================================================
34 
35 class IGraphicsPort;
36 class IFontInstance;
38 class IFormFieldFactory;
39 
50 class IFormField : public IPMUnknown
51 {
52 public:
53  enum { kDefaultIID = IID_IFORMFIELD };
54 
58  virtual bool16 SupportsDefinedStates() const = 0;
59 
65  virtual bool16 SupportsUndefinedStates() const = 0;
66 
73  virtual bool16 SupportsState(Form::AppearanceState inState) const = 0;
74 
78  virtual bool16 SupportsCustomStateNames( ) const = 0;
79 
83  virtual void GetIconRsrcID( PMRsrcID* outRsrcID ) = 0;
84 
91  virtual PMString GetStateName( Form::AppearanceState inState ) const = 0;
92 
98  virtual ErrorCode SetStateName( Form::AppearanceState inState, const PMString& inName ) = 0;
99 
108 
117  virtual void AddDefaultAttributes( IGraphicStyleAttributeBossList* outAttrs ) = 0;
118 };
119 
120 //=============================================================================
121 
122 #endif // __IForm_h__
123 
124 // IFormField.h.