InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IHyphenationExceptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: hhorton
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef _H_IHyphenationExceptions
28 #define _H_IHyphenationExceptions
29 
30 #include "IPMUnknown.h"
31 #include "TextID.h"
32 
33 class ILanguage;
34 class TextCharBuffer;
35 class HyphenExceptions;
37 class IHyphenatedWord;
38 
40 {
41  public:
42  enum { kDefaultIID = IID_IHYPHENATIONEXCEPTIONS };
43 
49  virtual void SetDefaultHyphenationExceptionsList(const HyphenExceptionsList& list) = 0;
50 
56  virtual void GetHyphenationExceptionsList(HyphenExceptionsList& list) const = 0;
62  virtual void SetHyphenationExceptionsList(const HyphenExceptionsList& list) = 0;
63 
70  virtual bool16 GetHyphenExceptionsByLanguage(const HyphenExceptions **hyphenExceptions, const ILanguage* lang) const = 0;
79  virtual bool16 SetHyphenExceptionsByLanguage(const HyphenExceptions& hyphenExceptions, const ILanguage* lang) = 0;
80 
86  virtual int32 GetNumHyphExceptionStructs(void) const = 0;
87 
98  virtual IHyphenatedWord* LookupExceptionWord(const TextCharBuffer &trimmed, const ILanguage* lang, int16 minTail, int16 minHead) const = 0;
99 };
100 
101 #endif /* _H_IHyphenationExceptions */