InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICHLFileNameTable.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __ICHLFileNameTable__
25 #define __ICHLFileNameTable__
26 
27 // Interface includes:
28 #include "IPMUnknown.h"
29 
30 // General includes:
31 #include "LanguageID.h"
32 
33 // Project includes:
34 #include "CHLID.h"
35 
36 // Forward declarations:
37 class PMString;
38 class ILanguage;
39 
40 #include "ICUForwardDeclare.h"
41 
42 #include "unicode/uloc.h"
43 #include "unicode/ucol.h"
44 #include "unicode/coll.h"
45 
50 {
54 
58  LanguageID fLanguageID;
59 
62 
65 
68 
71 
74 
77 
80 
82  U_ICU_NAMESPACE::Locale fICULocale;
83 
88  inline bool16 operator==(const CHLFileNameData& rData) const;
89 };
90 
91 /* operator ==
92 */
93 inline bool16 CHLFileNameData::operator==(const CHLFileNameData& rData) const
94 {
95  return fLanguageID == rData.fLanguageID &&
98  fCoreFileName == rData.fCoreFileName &&
99  fHyphFileName == rData.fHyphFileName &&
102  fICULocale == rData.fICULocale;
103 }
104 
105 
113 {
114  public:
115 
116  enum { kDefaultIID = IID_ICHLFILENAMETABLE };
117 
123  virtual void Install(const PMString& rPath) = 0;
124 
128  virtual int32 GetEntriesCount() const = 0;
129 
134  virtual const CHLFileNameData* GetNthEntry(int32 nIndex) const = 0;
135 
140  virtual bool16 IsSpellingService(int32 nIndex) const = 0;
141 
146  virtual bool16 IsHyphenationService(int32 nIndex) const = 0;
147 
152  virtual bool16 IsThesaurusService(int32 nIndex) const = 0;
153 };
154 
155 #endif //#ifndef __ICHLFileNameTable__
156 
157 
158 // End, ICHLFileNameTable.h.
159