InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextAttrGlyphForm.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: hlynn
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 __ITextAttrGlyphForm__
25 #define __ITextAttrGlyphForm__
26 
27 #include "IPMUnknown.h"
28 #include "K2Vector.h"
29 #include "OTFeature.h"
30 #include "CJKID.h"
31 
32 
38 {
39  public:
40  enum { kDefaultIID = IID_ITEXTATTRGLYPHFORM };
41  enum GlyphForm {
42  kFirstForm,
43  kNoForm = kFirstForm,
44  kFirstValidForm,
45  kTraditionalForm = kFirstValidForm,
46  kExpertForm,
47  kJIS78Form,
48  kJIS83Form,
49  kHalfWidthForm,
50  kThirdWidthForm,
51  kQuarterWidthForm,
52  kNLCForm,
53  kProportionalWidthForm,
54  kFullWidthForm,
55  kJIS04Form,
56  kJIS90Form,
57  kBeyondEndForm
58  };
59 
60  typedef ITextAttrGlyphForm::GlyphForm ValueType;
61 
65  virtual
66  bool
67  IsKnown() const
68  = 0;
69 
70  virtual
71  int32
72  ToFeatureInt() const
73  = 0;
74 
78  virtual
79  const char *
80  ToFeatureChars() const
81  = 0;
82 
86  virtual
87  const char *
88  GetDescriptiveString() const
89  = 0;
90 
94  virtual void SetGlyphForm(GlyphForm gf) = 0;
98  virtual void Set(ValueType val)
99  { SetGlyphForm(val); }
103  virtual GlyphForm GetGlyphForm() const = 0;
107  virtual ValueType Get() const
108  { return GetGlyphForm(); }
109 };
110 
111 
112 #endif
113  // __ITextAttrGlyphForm__