InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IKentenAdornmentData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ric Kamicar
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 __IKentenAdornmentData__
25 #define __IKentenAdornmentData__
26 
27 #include "IPMUnknown.h"
28 #include "IKentenStyle.h"
29 #include "ITextAdornmentData.h"
30 #include "TextAttrID.h"
31 #include "CTextEnum.h"
32 #include "IKRAdornmentData.h"
33 
34 class PMPoint;
35 class PMReal;
36 
42 {
43 public:
44  enum { kDefaultIID = IID_IKENTENADORNMENTDATA };
45 
46  enum KentenKind {
47  kNoKind = IKentenStyle::Kenten_None,
48 
49  kBlackSesameDot /* = IKentenStyle::Kenten_BlackSesameDot */,
50  kWhiteSesameDot /* = IKentenStyle::Kenten_WhiteSesameDot */,
51  kFisheye /* = IKentenStyle::Kenten_Fisheye */,
52  kBlackCircle /* = IKentenStyle::Kenten_BlackCircle */,
53  kSmallBlackCircle /* = IKentenStyle::Kenten_SmallBlackCircle */,
54  kBullseye /* = IKentenStyle::Kenten_Bullseye */,
55  kBlackTriangle /* = IKentenStyle::Kenten_BlackTriangle */,
56  kWhiteTriangle /* = IKentenStyle::Kenten_WhiteTriangle */,
57  kWhiteCircle /* = IKentenStyle::Kenten_WhiteCircle */,
58  kSmallWhiteCircle /* = IKentenStyle::Kenten_SmallWhiteCircle */,
59 
60  kCustomKind /* = IKentenStyle::Kenten_Custom */
61  };
62 
63  enum KentenAlignment { kLeft, kCenter, kRight } ;
64 
70  virtual void SetKentenKind(uchar val, int32 offsetInRun, int32 len) = 0;
71 
75  virtual void AddLength(int32 lenToAdd) = 0;
76 
82  virtual void SetKentenFont(UID font, const PMReal& size, PMString style) = 0;
83 
87  virtual void SetBaseTextRun(IWaxRun* baseTextWaxRun) = 0;
88 
92  virtual bool16 IsFeatureOn() const = 0;
93 
97  virtual int32 GetLength() const = 0;
98 
103  virtual IPMFont* QueryFont(IDataBase *db) const = 0;
104 
110  virtual bool16 SplitInto(IKRAdornmentData* other, int32 offsetInRun) = 0;
111 };
112 
113 #endif