24 #ifndef __IHyphenationService__ 25 #define __IHyphenationService__ 27 #include "IPMUnknown.h" 28 #include "LinguisticID.h" 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
56 enum LinguisticProviderHyphenationStyle {
57 kLinguisticProviderHyphenation_All,
58 kLinguisticProviderHyphenation_AllButUnaesthetic,
59 kLinguisticProviderHyphenation_Aesthetic,
60 kLinguisticProviderHyphenation_PreferredAesthetic
70 enum { kDefaultIID = IID_IHYPHENATIONSERVICE };
83 virtual IHyphenatedWord*
Hyphenate(
const TextCharBuffer &rWord, LinguisticServiceMode hyphenMode, uint16 nMinTail = 0, uint16 nMinHead = 0, LinguisticProviderHyphenationStyle providerHyphStyle = kLinguisticProviderHyphenation_All) = 0;
92 virtual bool16
Set(
const PMString &rFileName ) = 0;