1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/idl/nsIEditorSpellCheck.idl
3 : */
4 :
5 : #ifndef __gen_nsIEditorSpellCheck_h__
6 : #define __gen_nsIEditorSpellCheck_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIEditor; /* forward declaration */
18 :
19 : class nsITextServicesFilter; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIEditorSpellCheck */
23 : #define NS_IEDITORSPELLCHECK_IID_STR "334946c3-0e93-4aac-b662-e1b56f95d68b"
24 :
25 : #define NS_IEDITORSPELLCHECK_IID \
26 : {0x334946c3, 0x0e93, 0x4aac, \
27 : { 0xb6, 0x62, 0xe1, 0xb5, 0x6f, 0x95, 0xd6, 0x8b }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIEditorSpellCheck : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORSPELLCHECK_IID)
33 :
34 : /* void checkCurrentDictionary (); */
35 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentDictionary(void) = 0;
36 :
37 : /* boolean canSpellCheck (); */
38 : NS_SCRIPTABLE NS_IMETHOD CanSpellCheck(bool *_retval NS_OUTPARAM) = 0;
39 :
40 : /* void InitSpellChecker (in nsIEditor editor, in boolean enableSelectionChecking); */
41 : NS_SCRIPTABLE NS_IMETHOD InitSpellChecker(nsIEditor *editor, bool enableSelectionChecking) = 0;
42 :
43 : /* wstring GetNextMisspelledWord (); */
44 : NS_SCRIPTABLE NS_IMETHOD GetNextMisspelledWord(PRUnichar * *_retval NS_OUTPARAM) = 0;
45 :
46 : /* wstring GetSuggestedWord (); */
47 : NS_SCRIPTABLE NS_IMETHOD GetSuggestedWord(PRUnichar * *_retval NS_OUTPARAM) = 0;
48 :
49 : /* boolean CheckCurrentWord (in wstring suggestedWord); */
50 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWord(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) = 0;
51 :
52 : /* void ReplaceWord (in wstring misspelledWord, in wstring replaceWord, in boolean allOccurrences); */
53 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(const PRUnichar * misspelledWord, const PRUnichar * replaceWord, bool allOccurrences) = 0;
54 :
55 : /* void IgnoreWordAllOccurrences (in wstring word); */
56 : NS_SCRIPTABLE NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar * word) = 0;
57 :
58 : /* void GetPersonalDictionary (); */
59 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionary(void) = 0;
60 :
61 : /* wstring GetPersonalDictionaryWord (); */
62 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionaryWord(PRUnichar * *_retval NS_OUTPARAM) = 0;
63 :
64 : /* void AddWordToDictionary (in wstring word); */
65 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const PRUnichar * word) = 0;
66 :
67 : /* void RemoveWordFromDictionary (in wstring word); */
68 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const PRUnichar * word) = 0;
69 :
70 : /* void GetDictionaryList ([array, size_is (count)] out wstring dictionaryList, out PRUint32 count); */
71 : NS_SCRIPTABLE NS_IMETHOD GetDictionaryList(PRUnichar * **dictionaryList NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) = 0;
72 :
73 : /* AString GetCurrentDictionary (); */
74 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDictionary(nsAString & _retval NS_OUTPARAM) = 0;
75 :
76 : /* void SetCurrentDictionary (in AString dictionary); */
77 : NS_SCRIPTABLE NS_IMETHOD SetCurrentDictionary(const nsAString & dictionary) = 0;
78 :
79 : /* void UninitSpellChecker (); */
80 : NS_SCRIPTABLE NS_IMETHOD UninitSpellChecker(void) = 0;
81 :
82 : /* void setFilter (in nsITextServicesFilter filter); */
83 : NS_SCRIPTABLE NS_IMETHOD SetFilter(nsITextServicesFilter *filter) = 0;
84 :
85 : /* boolean CheckCurrentWordNoSuggest (in wstring suggestedWord); */
86 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWordNoSuggest(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) = 0;
87 :
88 : /* void UpdateCurrentDictionary (); */
89 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) = 0;
90 :
91 : };
92 :
93 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorSpellCheck, NS_IEDITORSPELLCHECK_IID)
94 :
95 : /* Use this macro when declaring classes that implement this interface. */
96 : #define NS_DECL_NSIEDITORSPELLCHECK \
97 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentDictionary(void); \
98 : NS_SCRIPTABLE NS_IMETHOD CanSpellCheck(bool *_retval NS_OUTPARAM); \
99 : NS_SCRIPTABLE NS_IMETHOD InitSpellChecker(nsIEditor *editor, bool enableSelectionChecking); \
100 : NS_SCRIPTABLE NS_IMETHOD GetNextMisspelledWord(PRUnichar * *_retval NS_OUTPARAM); \
101 : NS_SCRIPTABLE NS_IMETHOD GetSuggestedWord(PRUnichar * *_retval NS_OUTPARAM); \
102 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWord(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM); \
103 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(const PRUnichar * misspelledWord, const PRUnichar * replaceWord, bool allOccurrences); \
104 : NS_SCRIPTABLE NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar * word); \
105 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionary(void); \
106 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionaryWord(PRUnichar * *_retval NS_OUTPARAM); \
107 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const PRUnichar * word); \
108 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const PRUnichar * word); \
109 : NS_SCRIPTABLE NS_IMETHOD GetDictionaryList(PRUnichar * **dictionaryList NS_OUTPARAM, PRUint32 *count NS_OUTPARAM); \
110 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDictionary(nsAString & _retval NS_OUTPARAM); \
111 : NS_SCRIPTABLE NS_IMETHOD SetCurrentDictionary(const nsAString & dictionary); \
112 : NS_SCRIPTABLE NS_IMETHOD UninitSpellChecker(void); \
113 : NS_SCRIPTABLE NS_IMETHOD SetFilter(nsITextServicesFilter *filter); \
114 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWordNoSuggest(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM); \
115 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void);
116 :
117 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
118 : #define NS_FORWARD_NSIEDITORSPELLCHECK(_to) \
119 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentDictionary(void) { return _to CheckCurrentDictionary(); } \
120 : NS_SCRIPTABLE NS_IMETHOD CanSpellCheck(bool *_retval NS_OUTPARAM) { return _to CanSpellCheck(_retval); } \
121 : NS_SCRIPTABLE NS_IMETHOD InitSpellChecker(nsIEditor *editor, bool enableSelectionChecking) { return _to InitSpellChecker(editor, enableSelectionChecking); } \
122 : NS_SCRIPTABLE NS_IMETHOD GetNextMisspelledWord(PRUnichar * *_retval NS_OUTPARAM) { return _to GetNextMisspelledWord(_retval); } \
123 : NS_SCRIPTABLE NS_IMETHOD GetSuggestedWord(PRUnichar * *_retval NS_OUTPARAM) { return _to GetSuggestedWord(_retval); } \
124 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWord(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) { return _to CheckCurrentWord(suggestedWord, _retval); } \
125 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(const PRUnichar * misspelledWord, const PRUnichar * replaceWord, bool allOccurrences) { return _to ReplaceWord(misspelledWord, replaceWord, allOccurrences); } \
126 : NS_SCRIPTABLE NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar * word) { return _to IgnoreWordAllOccurrences(word); } \
127 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionary(void) { return _to GetPersonalDictionary(); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionaryWord(PRUnichar * *_retval NS_OUTPARAM) { return _to GetPersonalDictionaryWord(_retval); } \
129 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const PRUnichar * word) { return _to AddWordToDictionary(word); } \
130 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const PRUnichar * word) { return _to RemoveWordFromDictionary(word); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetDictionaryList(PRUnichar * **dictionaryList NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return _to GetDictionaryList(dictionaryList, count); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDictionary(nsAString & _retval NS_OUTPARAM) { return _to GetCurrentDictionary(_retval); } \
133 : NS_SCRIPTABLE NS_IMETHOD SetCurrentDictionary(const nsAString & dictionary) { return _to SetCurrentDictionary(dictionary); } \
134 : NS_SCRIPTABLE NS_IMETHOD UninitSpellChecker(void) { return _to UninitSpellChecker(); } \
135 : NS_SCRIPTABLE NS_IMETHOD SetFilter(nsITextServicesFilter *filter) { return _to SetFilter(filter); } \
136 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWordNoSuggest(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) { return _to CheckCurrentWordNoSuggest(suggestedWord, _retval); } \
137 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) { return _to UpdateCurrentDictionary(); }
138 :
139 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
140 : #define NS_FORWARD_SAFE_NSIEDITORSPELLCHECK(_to) \
141 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentDictionary(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCurrentDictionary(); } \
142 : NS_SCRIPTABLE NS_IMETHOD CanSpellCheck(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanSpellCheck(_retval); } \
143 : NS_SCRIPTABLE NS_IMETHOD InitSpellChecker(nsIEditor *editor, bool enableSelectionChecking) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitSpellChecker(editor, enableSelectionChecking); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetNextMisspelledWord(PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextMisspelledWord(_retval); } \
145 : NS_SCRIPTABLE NS_IMETHOD GetSuggestedWord(PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuggestedWord(_retval); } \
146 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWord(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCurrentWord(suggestedWord, _retval); } \
147 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(const PRUnichar * misspelledWord, const PRUnichar * replaceWord, bool allOccurrences) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceWord(misspelledWord, replaceWord, allOccurrences); } \
148 : NS_SCRIPTABLE NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar * word) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWordAllOccurrences(word); } \
149 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionary(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersonalDictionary(); } \
150 : NS_SCRIPTABLE NS_IMETHOD GetPersonalDictionaryWord(PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersonalDictionaryWord(_retval); } \
151 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const PRUnichar * word) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWordToDictionary(word); } \
152 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const PRUnichar * word) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWordFromDictionary(word); } \
153 : NS_SCRIPTABLE NS_IMETHOD GetDictionaryList(PRUnichar * **dictionaryList NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDictionaryList(dictionaryList, count); } \
154 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDictionary(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentDictionary(_retval); } \
155 : NS_SCRIPTABLE NS_IMETHOD SetCurrentDictionary(const nsAString & dictionary) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentDictionary(dictionary); } \
156 : NS_SCRIPTABLE NS_IMETHOD UninitSpellChecker(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UninitSpellChecker(); } \
157 : NS_SCRIPTABLE NS_IMETHOD SetFilter(nsITextServicesFilter *filter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(filter); } \
158 : NS_SCRIPTABLE NS_IMETHOD CheckCurrentWordNoSuggest(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCurrentWordNoSuggest(suggestedWord, _retval); } \
159 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCurrentDictionary(); }
160 :
161 : #if 0
162 : /* Use the code below as a template for the implementation class for this interface. */
163 :
164 : /* Header file */
165 : class nsEditorSpellCheck : public nsIEditorSpellCheck
166 : {
167 : public:
168 : NS_DECL_ISUPPORTS
169 : NS_DECL_NSIEDITORSPELLCHECK
170 :
171 : nsEditorSpellCheck();
172 :
173 : private:
174 : ~nsEditorSpellCheck();
175 :
176 : protected:
177 : /* additional members */
178 : };
179 :
180 : /* Implementation file */
181 : NS_IMPL_ISUPPORTS1(nsEditorSpellCheck, nsIEditorSpellCheck)
182 :
183 : nsEditorSpellCheck::nsEditorSpellCheck()
184 : {
185 : /* member initializers and constructor code */
186 : }
187 :
188 : nsEditorSpellCheck::~nsEditorSpellCheck()
189 : {
190 : /* destructor code */
191 : }
192 :
193 : /* void checkCurrentDictionary (); */
194 : NS_IMETHODIMP nsEditorSpellCheck::CheckCurrentDictionary()
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* boolean canSpellCheck (); */
200 : NS_IMETHODIMP nsEditorSpellCheck::CanSpellCheck(bool *_retval NS_OUTPARAM)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* void InitSpellChecker (in nsIEditor editor, in boolean enableSelectionChecking); */
206 : NS_IMETHODIMP nsEditorSpellCheck::InitSpellChecker(nsIEditor *editor, bool enableSelectionChecking)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* wstring GetNextMisspelledWord (); */
212 : NS_IMETHODIMP nsEditorSpellCheck::GetNextMisspelledWord(PRUnichar * *_retval NS_OUTPARAM)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* wstring GetSuggestedWord (); */
218 : NS_IMETHODIMP nsEditorSpellCheck::GetSuggestedWord(PRUnichar * *_retval NS_OUTPARAM)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* boolean CheckCurrentWord (in wstring suggestedWord); */
224 : NS_IMETHODIMP nsEditorSpellCheck::CheckCurrentWord(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* void ReplaceWord (in wstring misspelledWord, in wstring replaceWord, in boolean allOccurrences); */
230 : NS_IMETHODIMP nsEditorSpellCheck::ReplaceWord(const PRUnichar * misspelledWord, const PRUnichar * replaceWord, bool allOccurrences)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* void IgnoreWordAllOccurrences (in wstring word); */
236 : NS_IMETHODIMP nsEditorSpellCheck::IgnoreWordAllOccurrences(const PRUnichar * word)
237 : {
238 : return NS_ERROR_NOT_IMPLEMENTED;
239 : }
240 :
241 : /* void GetPersonalDictionary (); */
242 : NS_IMETHODIMP nsEditorSpellCheck::GetPersonalDictionary()
243 : {
244 : return NS_ERROR_NOT_IMPLEMENTED;
245 : }
246 :
247 : /* wstring GetPersonalDictionaryWord (); */
248 : NS_IMETHODIMP nsEditorSpellCheck::GetPersonalDictionaryWord(PRUnichar * *_retval NS_OUTPARAM)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* void AddWordToDictionary (in wstring word); */
254 : NS_IMETHODIMP nsEditorSpellCheck::AddWordToDictionary(const PRUnichar * word)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* void RemoveWordFromDictionary (in wstring word); */
260 : NS_IMETHODIMP nsEditorSpellCheck::RemoveWordFromDictionary(const PRUnichar * word)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* void GetDictionaryList ([array, size_is (count)] out wstring dictionaryList, out PRUint32 count); */
266 : NS_IMETHODIMP nsEditorSpellCheck::GetDictionaryList(PRUnichar * **dictionaryList NS_OUTPARAM, PRUint32 *count NS_OUTPARAM)
267 : {
268 : return NS_ERROR_NOT_IMPLEMENTED;
269 : }
270 :
271 : /* AString GetCurrentDictionary (); */
272 : NS_IMETHODIMP nsEditorSpellCheck::GetCurrentDictionary(nsAString & _retval NS_OUTPARAM)
273 : {
274 : return NS_ERROR_NOT_IMPLEMENTED;
275 : }
276 :
277 : /* void SetCurrentDictionary (in AString dictionary); */
278 : NS_IMETHODIMP nsEditorSpellCheck::SetCurrentDictionary(const nsAString & dictionary)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 :
283 : /* void UninitSpellChecker (); */
284 : NS_IMETHODIMP nsEditorSpellCheck::UninitSpellChecker()
285 : {
286 : return NS_ERROR_NOT_IMPLEMENTED;
287 : }
288 :
289 : /* void setFilter (in nsITextServicesFilter filter); */
290 : NS_IMETHODIMP nsEditorSpellCheck::SetFilter(nsITextServicesFilter *filter)
291 : {
292 : return NS_ERROR_NOT_IMPLEMENTED;
293 : }
294 :
295 : /* boolean CheckCurrentWordNoSuggest (in wstring suggestedWord); */
296 : NS_IMETHODIMP nsEditorSpellCheck::CheckCurrentWordNoSuggest(const PRUnichar * suggestedWord, bool *_retval NS_OUTPARAM)
297 : {
298 : return NS_ERROR_NOT_IMPLEMENTED;
299 : }
300 :
301 : /* void UpdateCurrentDictionary (); */
302 : NS_IMETHODIMP nsEditorSpellCheck::UpdateCurrentDictionary()
303 : {
304 : return NS_ERROR_NOT_IMPLEMENTED;
305 : }
306 :
307 : /* End of implementation class template. */
308 : #endif
309 :
310 :
311 : #endif /* __gen_nsIEditorSpellCheck_h__ */
|