InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISpellingPrefs.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 
24 #ifndef _H_ISpellingPrefs
25 #define _H_ISpellingPrefs
26 
27 #include "IPMUnknown.h"
28 #include "SpellingServiceID.h"
29 
36 class ISpellingPrefs : public IPMUnknown
37 {
38 public:
39  enum { kDefaultIID = IID_ISPELLINGPREFS };
40 
44  virtual bool16 GetDynamicSpellCheck() const = 0;
48  virtual void SetDynamicSpellCheck(bool16 dynamicSpellCheck) = 0;
49 
57  virtual int32 GetDynamicSpellMisspelledWordColorIndex() const = 0;
64  virtual void SetDynamicSpellMisspelledWordColorIndex(int32 index) = 0;
65 
73  virtual int32 GetDynamicSpellRepeatedWordColorIndex() const = 0;
80  virtual void SetDynamicSpellRepeatedWordColorIndex(int32 index) = 0;
81 
89  virtual int32 GetDynamicSpellUncapitalizedWordColorIndex() const = 0;
96  virtual void SetDynamicSpellUncapitalizedWordColorIndex(int32 index) = 0;
97 
105  virtual int32 GetDynamicSpellUncapitalizedSentenceColorIndex() const = 0;
112  virtual void SetDynamicSpellUncapitalizedSentenceColorIndex(int32 index) = 0;
113 
117  virtual bool16 GetCheckMisspelledWords() const = 0;
121  virtual void SetCheckMisspelledWords(bool16 checkMisspelledWords) = 0;
122 
126  virtual bool16 GetCheckRepeatedWords() const = 0;
130  virtual void SetCheckRepeatedWords(bool16 checkRepeatedWords) = 0;
131 
135  virtual bool16 GetCheckCapitalizeWords() const = 0;
139  virtual void SetCheckCapitalizeWords(bool16 checkCapitalizeWords) = 0;
140 
144  virtual bool16 GetCheckCapitalizeSentences() const = 0;
148  virtual void SetCheckCapitalizeSentences(bool16 checkCapitalizeSentences) = 0;
149 
163  virtual void Set(bool16 dsc, int32 mwColorIndex, int32 rwColorIndex, int32 uwColorIndex, int32 usColorIndex, bool16 cmw, bool16 crw, bool16 ccw, bool16 ccs) = 0;
164 };
165 
166 #endif