InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IKentenStyle.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Shinji Hiramatsu
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 __IKentenStyle__
25 #define __IKentenStyle__
26 
27 
28 #include "IPMUnknown.h"
29 #include "CTextEnum.h"
30 #include "CJKID.h"
31 
32 
36 class IKentenStyle : public IPMUnknown
37 {
38  public:
39 
41  enum { kDefaultIID = IID_IKENTENSTYLE };
42 
44  enum KentenKind {
45  Kenten_None = 0,
46 
47  Kenten_BlackSesameDot,
48  Kenten_WhiteSesameDot,
49  Kenten_Fisheye,
50  Kenten_BlackCircle,
51  Kenten_SmallBlackCircle,
52  Kenten_Bullseye,
53  Kenten_BlackTriangle,
54  Kenten_WhiteTriangle,
55  Kenten_WhiteCircle,
56  Kenten_SmallWhiteCircle,
57 
60  };
61 
63  enum AlignmentType { kLeft, kCenter, kRight };
64 
66  enum {
67  kShiftJIS = 0,
68  kJIS,
69  kUnicode,
70  kKuten
71  };
72 
74  enum {
75  kBlackSesameAscii = 0x0030,
76  kWhiteSesameAscii,
77  kFisheyeAscii,
78  kBlackCircleAscii,
79  kSmallBlackCircleAscii,
80  kBullseyeAscii,
81  kBlackTriangleAscii,
82  kWhiteTriangleAscii,
83  kWhiteCircleAscii,
84  kSmallWhiteCircleAscii
85  };
86 
90  virtual void SetKentenKind(IKentenStyle::KentenKind flag) = 0;
92  virtual IKentenStyle::KentenKind GetKentenKind() const = 0;
93 
94 
98  virtual void SetKentenSize(PMReal p) = 0;
101  virtual PMReal GetKentenSize() const = 0;
102 
103 
107  virtual void SetKentenRelatedSize(PMReal p) = 0;
110  virtual PMReal GetKentenRelatedSize() const = 0;
111 
112 
116  virtual void SetKentenFontFamily(UID u) = 0;
119  virtual UID GetKentenFontFamily() const = 0;
120 
121 
125  virtual void SetKentenFontStyle(const PMString& n) = 0;
128  virtual const PMString& GetKentenFontStyle() const = 0;
129 
130 
134  virtual void SetKentenXScale(PMReal r) = 0;
137  virtual PMReal GetKentenXScale() const = 0;
138 
139 
143  virtual void SetKentenYScale(PMReal r) = 0;
146  virtual PMReal GetKentenYScale() const = 0;
147 
148 
152  virtual void SetKentenXOffset(PMReal r) = 0;
155  virtual PMReal GetKentenXOffset() const = 0;
156 
157 
161  virtual void SetKentenYOffset(PMReal r) = 0;
164  virtual PMReal GetKentenYOffset() const = 0;
165 
166 
170  virtual void SetKentenColor(UID newColor) = 0;
173  virtual UID GetKentenColor() = 0;
174 
175 
180  virtual void SetColorUID(bool16 stroke, UID newColor) = 0;
183  virtual UID GetColorUID(bool16 stroke) = 0;
184 
185 
190  virtual void SetTint(bool16 stroke, PMReal tint) = 0;
193  virtual PMReal GetTint(bool16 stroke) const = 0;
194 
195 
200  virtual void SetOverprint(bool16 stroke, int16 over) = 0;
203  virtual int16 GetOverprint(bool16 stroke) const = 0;
204 
205 
209  virtual void SetOutlineWidth(PMReal width) = 0;
212  virtual PMReal GetOutlineWidth() const = 0;
215  virtual bool16 IsOutlined() = 0;
216 
217 
221  virtual void SetKentenAlignment(IKentenStyle::AlignmentType align) = 0;
224  virtual int16 GetKentenAlignment() const = 0;
225 
226 
230  virtual void SetKentenCharacterSet(int16 characterSet) = 0;
233  virtual int16 GetKentenCharacterSet() const = 0;
234 
235 
239  virtual void SetKentenPosition(bool16 pos) = 0;
242  virtual bool16 GetKentenPosition() const = 0;
243 
244 
248  virtual void SetKentenCharacter(textchar code) = 0;
251  virtual textchar GetKentenCharacter() const = 0;
252 };
253 
254 
255 #endif
256  // __IKentenStyle__