InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAltGlyphAttr.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: prubini
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 __IAltGlyphAttr__
25 #define __IAltGlyphAttr__
26 
27 #include "IPMUnknown.h"
28 #include "K2Vector.h"
29 #include "OTFeature.h"
30 #include "CJKID.h"
31 
35 class IAltGlyphAttr : public IPMUnknown
36 {
37  public:
38  enum { kDefaultIID = IID_IALTGLYPHATTR_OBSOLETE };
39  enum GlyphForm {kNoForm,
40  kTraditionalForm,
41  kExpertForm,
42  kJIS78Form,
43  kJIS83Form,
44  kHalfWidthForm,
45  kThirdWidthForm,
46  kQuarterWidthForm,
47  kNLCForm};
48 
49  typedef IAltGlyphAttr::GlyphForm ValueType;
50 
51  // Add and Remove
52  virtual void SetAltGlyph(const char* whichSet,int32 choice) = 0;
53 
54  virtual void SetGlyphForm(GlyphForm) = 0;
55  virtual void Set(ValueType val)
56  { SetGlyphForm(val); }
57  virtual GlyphForm GetGlyphForm() const = 0;
58  virtual ValueType Get() const
59  { return GetGlyphForm(); }
60 
61  virtual void SetFeatureList(const OpenTypeFeatureList& featureList) = 0;
62  virtual const OpenTypeFeatureList& GetFeatureList() const = 0;
63 };
64 
65 #endif
66  // __IAltGlyphAttr__