InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HypAdapter.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 __HypAdapter__
25 #define __HypAdapter__
26 
27 #include "IHyphenationService.h" // for LinguisticServiceMode
28 #include "Hyp.h"
29 #include "LanguageID.h"
30 
31 
32 class TextCharBuffer;
33 class IHyphenatedWord;
34 
95 {
96 public:
104 
110  virtual void Install(Hyp::HyphenationServices& hyphenationServices, const PMString& rPath);
111 
140  virtual IHyphenatedWord* Hyphenate(const TextCharBuffer& rWord, uint16 nMinTail, uint16 nMinHead, const LinguisticServiceMode& serviceMode, const LanguageID& languageID);
141 
142 protected:
151  virtual void installService(Hyp::HyphenationServices& hyphenationServices, const PMString& rPath, const LanguageID& languageID, const PMString& languageName, const PMString& primaryLanguageName, const PMString& subLanguageName);
152 
159  virtual PMString getDictionaryFile(const LanguageID& languageID);
160 
170  virtual void findHyphenationPoints(const TextCharBuffer& rWord, uint16 nMinTail, uint16 nMinHead, const LinguisticServiceMode& serviceMode, const LanguageID& languageID, Hyp::HyphenationPoints& hyphenationPoints);
171 
175  virtual char* textCharToChar(const TextCharBuffer& rWord);
176 };
177 
178 #endif // __HypAdapter__
179