InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IHyphenationService.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __IHyphenationService__
25 #define __IHyphenationService__
26 
27 #include "IPMUnknown.h"
28 #include "LinguisticID.h"
29 
30 class TextCharBuffer;
31 
32 //----------------------------------------------------------------------------------------
33 // Interface IHyphenationService
34 //----------------------------------------------------------------------------------------
35 class IHyphenatedWord;
36 
40 enum LinguisticServiceMode {
41  kLinguisticService_Nothing = 0x00,
42  kLinguisticService_ManualBit = 0x01,
43  kLinguisticService_UserDictBit = 0x02,
44  kLinguisticService_DictionaryBit = 0x04,
45  kLinguisticService_AlgorithmBit = 0x08,
47  kLinguisticService_ManualOnly = 0x01,
48  kLinguisticService_UserDict = 0x03,
49  kLinguisticService_Dictionary = 0x07,
50  kLinguisticService_Algorithm = 0x0F
51 };
52 
56 enum LinguisticProviderHyphenationStyle {
57  kLinguisticProviderHyphenation_All,
58  kLinguisticProviderHyphenation_AllButUnaesthetic,
59  kLinguisticProviderHyphenation_Aesthetic,
60  kLinguisticProviderHyphenation_PreferredAesthetic
61 };
62 
63 
68 {
69 public:
70  enum { kDefaultIID = IID_IHYPHENATIONSERVICE };
71 
83  virtual IHyphenatedWord* Hyphenate(const TextCharBuffer &rWord, LinguisticServiceMode hyphenMode, uint16 nMinTail = 0, uint16 nMinHead = 0, LinguisticProviderHyphenationStyle providerHyphStyle = kLinguisticProviderHyphenation_All) = 0;
84 
92  virtual bool16 Set( const PMString &rFileName ) = 0;
93 
99  virtual void CheckUserDictionary(bool16 checkIt) = 0;
100 };
101 
102 #endif