InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPairKernDict.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: EricK
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 __IPairKernDict__
25 #define __IPairKernDict__
26 
27 #include "IPMUnknown.h"
28 #include "CTextEnum.h"
29 #include "TextID.h"
30 
31 class IDrawingStyle;
33 class PMRealGlyphPoint;
34 
41 {
42  public:
43  enum { kDefaultIID = IID_IPAIRKERNDICT };
44  enum { kDefaultServiceID = kPairKerningService };
45 
60  virtual bool16 SingleStyleKerns(bool16 vertical, const IDrawingStyle *style,
61  const Text::GlyphID *glyphs, PMReal *xkerns, PMReal *yKerns, int32 bufSize,
62  const WideStringConstUTF32Iter *kernChars = nil,
63  const char* scriptTag = nil, const char* langTag = nil) const = 0;
64 
78  virtual bool16 SingleStyleKern(bool16 vertical, const IDrawingStyle *style,
79  Text::GlyphID g1, Text::GlyphID g2, PMReal *xk, PMReal *yk,
80  const WideStringConstUTF32Iter *kernChars = nil,
81  const char* scriptTag = nil, const char* langTag = nil) const = 0;
82 
101  virtual bool16 MultiStyleKern(bool16 vertical, const IDrawingStyle *style1,
102  Text::GlyphID g1, const IDrawingStyle *style2, Text::GlyphID g2, PMReal *xk, PMReal *yk,
103  const WideStringConstUTF32Iter *kernChars = nil, const IDrawingStyle *paraStyle = nil,
104  const char* scriptTag = nil, const char* langTag = nil) const = 0;
105 
118  virtual bool16 SingleStyleKerns(bool16 vertical, const IDrawingStyle *style,
119  PMRealGlyphPoint *strike, int32 number, const WideStringConstUTF32Iter *kernChars = nil,
120  const char* scriptTag = nil, const char* langTag = nil) const = 0;
121 };
122 
123 
124 #endif
125  // __IPairKernDict__