InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGlyphUtilsME.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ???
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 // Usage rights licenced to Adobe Inc. 1993 - 2007.
24 //
25 //========================================================================================
26 
27 #ifndef __IGlyphUtilsME__
28 #define __IGlyphUtilsME__
29 
30 #include "IPMUnknown.h"
31 #include "IPMStream.h"
32 #include "Utils.h"
33 
34 #include "K2Vector.h"
35 #include "CTextEnum.h"
36 #include "TextID.h"
37 #include "ITextAttrGlyphForm.h"
38 #include "UnicodeClass.h"
39 
40 class IPMFont;
41 class ISelectionManager;
42 class IFontInstance;
43 class GlyphAccessData;
44 class WideString;
45 class AttributeBossList;
46 class GlyphEntry;
47 class GlyphSet;
48 class RangeData;
49 
53 class IGlyphUtilsME : public IPMUnknown
54 {
55 public:
56  enum { kDefaultIID = IID_IGLYPHUTILSME };
57 
68  virtual void InsertTheCharacter(ISelectionManager *selMgr, IPMFont *font, LanguageID id, const GlyphEntry * baseGlyphEntry,
69  const GlyphEntry * alternateGlyphEntry, bool16 selectChar = kFalse, bool16 setFont = kFalse) = 0;
70 
82  virtual int32 GetSelectionGlyphSet(IPMFont *font, IFontInstance* fontInstance, LanguageID id, const WideString& chars,
83  Text::GlyphID glyph, GlyphSet *glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder) = 0;
84 
95  virtual int32 GetGlyphListGlyphSet(IPMFont *font, IFontInstance* fontInstance, LanguageID id, Text::GlyphID* glyphs,
96  int32 numGlyphs, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder) = 0;
97 
105  virtual bool16 GetGlyphHasAlternate(IPMFont *font, LanguageID id, Text::GlyphID glyph, const char * tag = nil) = 0;
106 
114  virtual unsigned GetGlyphAlternateCount (IPMFont *font, LanguageID id, Text::GlyphID glyph, const char * tag = nil) = 0;
115 
123  virtual int32 GetEntireFont(IPMFont *font, LanguageID id, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder) = 0;
124 
135  virtual int32 GetFilteredGlyphs(IPMFont *font, LanguageID id, GlyphSet * glyphSet, GlyphFilterProcList& includeFilterProcList, GlyphFilterProcList& excludeFilterProcList, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder ) = 0;
136 
147  virtual int32 GetOTFFeatureGlyphSet(const char * tags, int32 numTags, IPMFont * font, LanguageID id, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder) = 0;
148 
149 
161  virtual bool16 GetOTFFeature(IPMFont * font, IFontInstance * fontInstance, LanguageID id, const GlyphEntry * baseGlyph, const GlyphEntry * alternate, char * tagBuffer/* 4 bytes */, int32 & choice) = 0;
162 
171  virtual int32 GetGlyphsForFeatureAccessInfo(const char * tags, int32 numTags, IPMFont * font, LanguageID id,
172  GlyphSet * glyphSet) = 0;
173 
182  virtual int32 GetGlyphAccessInfo(Text::GlyphID glyphID, IPMFont * font, LanguageID id,
183  GlyphAccessData * glyphAccessData) = 0;
184 
185 
195  virtual int32 GetGlyphAllAccessInfo(Text::GlyphID glyphID, IPMFont * font, LanguageID langID,
196  K2Vector<GlyphAccessData*>& glyphAccessDataList) = 0;
197 
210  virtual bool16 TestFeatureSubstitution(IFontInstance * fontInstance, LanguageID id, const WideString& textString, char * tags, int32 * choices, int32 numFeatures, Text::GlyphID testGlyphID) = 0;
211 
223  virtual void GetOTFAttribute(char * tags, int32 choice, AttributeBossList * attrBossList, OpenTypeFeatureList& featureList, int32& form,
224  IFontInstance *fontInstance, LanguageID id, const WideString& stringToApply, Text::GlyphID g) = 0;
225 
239  virtual void InsertTheCharacterAtRange(ISelectionManager *selMgr, IPMFont *font, LanguageID id, const GlyphEntry * baseGlyphEntry,
240  const GlyphEntry * alternateGlyphEntry, bool16 selectChar = kFalse, bool16 setFont = kFalse, TextIndex start = kInvalidTextIndex,
241  TextIndex end = kInvalidTextIndex, const RangeData* rangeToSelect = nil) = 0;
242 };
243 
244 
245 #endif
246  // __IGlyphUtilsME__
247