Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIInlineSpellChecker.idl
3 : */
4 :
5 : #ifndef __gen_nsIInlineSpellChecker_h__
6 : #define __gen_nsIInlineSpellChecker_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_domstubs_h__
14 : #include "domstubs.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsISelection; /* forward declaration */
22 :
23 : class nsIEditor; /* forward declaration */
24 :
25 : class nsIEditorSpellCheck; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIInlineSpellChecker */
29 : #define NS_IINLINESPELLCHECKER_IID_STR "b7b7a77c-40c4-4196-b0b7-b0338243b3fe"
30 :
31 : #define NS_IINLINESPELLCHECKER_IID \
32 : {0xb7b7a77c, 0x40c4, 0x4196, \
33 : { 0xb0, 0xb7, 0xb0, 0x33, 0x82, 0x43, 0xb3, 0xfe }}
34 :
35 0 : class NS_NO_VTABLE nsIInlineSpellChecker : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINLINESPELLCHECKER_IID)
39 :
40 : /* readonly attribute nsIEditorSpellCheck spellChecker; */
41 : NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) = 0;
42 :
43 : /* void init (in nsIEditor aEditor); */
44 : NS_IMETHOD Init(nsIEditor *aEditor) = 0;
45 :
46 : /* void cleanup (in boolean aDestroyingFrames); */
47 : NS_IMETHOD Cleanup(bool aDestroyingFrames) = 0;
48 :
49 : /* attribute boolean enableRealTimeSpell; */
50 : NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) = 0;
51 : NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) = 0;
52 :
53 : /* void spellCheckAfterEditorChange (in long aAction, in nsISelection aSelection, in nsIDOMNode aPreviousSelectedNode, in long aPreviousSelectedOffset, in nsIDOMNode aStartNode, in long aStartOffset, in nsIDOMNode aEndNode, in long aEndOffset); */
54 : NS_IMETHOD SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset) = 0;
55 :
56 : /* void spellCheckRange (in nsIDOMRange aSelection); */
57 : NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) = 0;
58 :
59 : /* nsIDOMRange getMisspelledWord (in nsIDOMNode aNode, in long aOffset); */
60 : NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval) = 0;
61 :
62 : /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
63 : NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword) = 0;
64 :
65 : /* void addWordToDictionary (in AString aWord); */
66 : NS_IMETHOD AddWordToDictionary(const nsAString & aWord) = 0;
67 :
68 : /* void removeWordFromDictionary (in AString aWord); */
69 : NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) = 0;
70 :
71 : /* void ignoreWord (in AString aWord); */
72 : NS_IMETHOD IgnoreWord(const nsAString & aWord) = 0;
73 :
74 : /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
75 : NS_IMETHOD IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount) = 0;
76 :
77 : /* void updateCurrentDictionary (); */
78 : NS_IMETHOD UpdateCurrentDictionary(void) = 0;
79 :
80 : /* readonly attribute boolean spellCheckPending; */
81 : NS_IMETHOD GetSpellCheckPending(bool *aSpellCheckPending) = 0;
82 :
83 : };
84 :
85 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIInlineSpellChecker, NS_IINLINESPELLCHECKER_IID)
86 :
87 : /* Use this macro when declaring classes that implement this interface. */
88 : #define NS_DECL_NSIINLINESPELLCHECKER \
89 : NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) override; \
90 : NS_IMETHOD Init(nsIEditor *aEditor) override; \
91 : NS_IMETHOD Cleanup(bool aDestroyingFrames) override; \
92 : NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) override; \
93 : NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) override; \
94 : NS_IMETHOD SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset) override; \
95 : NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) override; \
96 : NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval) override; \
97 : NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword) override; \
98 : NS_IMETHOD AddWordToDictionary(const nsAString & aWord) override; \
99 : NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) override; \
100 : NS_IMETHOD IgnoreWord(const nsAString & aWord) override; \
101 : NS_IMETHOD IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount) override; \
102 : NS_IMETHOD UpdateCurrentDictionary(void) override; \
103 : NS_IMETHOD GetSpellCheckPending(bool *aSpellCheckPending) override;
104 :
105 : /* Use this macro when declaring the members of this interface when the
106 : class doesn't implement the interface. This is useful for forwarding. */
107 : #define NS_DECL_NON_VIRTUAL_NSIINLINESPELLCHECKER \
108 : nsresult GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker); \
109 : nsresult Init(nsIEditor *aEditor); \
110 : nsresult Cleanup(bool aDestroyingFrames); \
111 : nsresult GetEnableRealTimeSpell(bool *aEnableRealTimeSpell); \
112 : nsresult SetEnableRealTimeSpell(bool aEnableRealTimeSpell); \
113 : nsresult SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset); \
114 : nsresult SpellCheckRange(nsIDOMRange *aSelection); \
115 : nsresult GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval); \
116 : nsresult ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword); \
117 : nsresult AddWordToDictionary(const nsAString & aWord); \
118 : nsresult RemoveWordFromDictionary(const nsAString & aWord); \
119 : nsresult IgnoreWord(const nsAString & aWord); \
120 : nsresult IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount); \
121 : nsresult UpdateCurrentDictionary(void); \
122 : nsresult GetSpellCheckPending(bool *aSpellCheckPending);
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
125 : #define NS_FORWARD_NSIINLINESPELLCHECKER(_to) \
126 : NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) override { return _to GetSpellChecker(aSpellChecker); } \
127 : NS_IMETHOD Init(nsIEditor *aEditor) override { return _to Init(aEditor); } \
128 : NS_IMETHOD Cleanup(bool aDestroyingFrames) override { return _to Cleanup(aDestroyingFrames); } \
129 : NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) override { return _to GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
130 : NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) override { return _to SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
131 : NS_IMETHOD SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset) override { return _to SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
132 : NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) override { return _to SpellCheckRange(aSelection); } \
133 : NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval) override { return _to GetMisspelledWord(aNode, aOffset, _retval); } \
134 : NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword) override { return _to ReplaceWord(aNode, aOffset, aNewword); } \
135 : NS_IMETHOD AddWordToDictionary(const nsAString & aWord) override { return _to AddWordToDictionary(aWord); } \
136 : NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) override { return _to RemoveWordFromDictionary(aWord); } \
137 : NS_IMETHOD IgnoreWord(const nsAString & aWord) override { return _to IgnoreWord(aWord); } \
138 : NS_IMETHOD IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount) override { return _to IgnoreWords(aWordsToIgnore, aCount); } \
139 : NS_IMETHOD UpdateCurrentDictionary(void) override { return _to UpdateCurrentDictionary(); } \
140 : NS_IMETHOD GetSpellCheckPending(bool *aSpellCheckPending) override { return _to GetSpellCheckPending(aSpellCheckPending); }
141 :
142 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
143 : #define NS_FORWARD_SAFE_NSIINLINESPELLCHECKER(_to) \
144 : NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpellChecker(aSpellChecker); } \
145 : NS_IMETHOD Init(nsIEditor *aEditor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aEditor); } \
146 : NS_IMETHOD Cleanup(bool aDestroyingFrames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cleanup(aDestroyingFrames); } \
147 : NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
148 : NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
149 : NS_IMETHOD SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
150 : NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckRange(aSelection); } \
151 : NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMisspelledWord(aNode, aOffset, _retval); } \
152 : NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceWord(aNode, aOffset, aNewword); } \
153 : NS_IMETHOD AddWordToDictionary(const nsAString & aWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWordToDictionary(aWord); } \
154 : NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWordFromDictionary(aWord); } \
155 : NS_IMETHOD IgnoreWord(const nsAString & aWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(aWord); } \
156 : NS_IMETHOD IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWords(aWordsToIgnore, aCount); } \
157 : NS_IMETHOD UpdateCurrentDictionary(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCurrentDictionary(); } \
158 : NS_IMETHOD GetSpellCheckPending(bool *aSpellCheckPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpellCheckPending(aSpellCheckPending); }
159 :
160 : #if 0
161 : /* Use the code below as a template for the implementation class for this interface. */
162 :
163 : /* Header file */
164 : class nsInlineSpellChecker : public nsIInlineSpellChecker
165 : {
166 : public:
167 : NS_DECL_ISUPPORTS
168 : NS_DECL_NSIINLINESPELLCHECKER
169 :
170 : nsInlineSpellChecker();
171 :
172 : private:
173 : ~nsInlineSpellChecker();
174 :
175 : protected:
176 : /* additional members */
177 : };
178 :
179 : /* Implementation file */
180 : NS_IMPL_ISUPPORTS(nsInlineSpellChecker, nsIInlineSpellChecker)
181 :
182 : nsInlineSpellChecker::nsInlineSpellChecker()
183 : {
184 : /* member initializers and constructor code */
185 : }
186 :
187 : nsInlineSpellChecker::~nsInlineSpellChecker()
188 : {
189 : /* destructor code */
190 : }
191 :
192 : /* readonly attribute nsIEditorSpellCheck spellChecker; */
193 : NS_IMETHODIMP nsInlineSpellChecker::GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 :
198 : /* void init (in nsIEditor aEditor); */
199 : NS_IMETHODIMP nsInlineSpellChecker::Init(nsIEditor *aEditor)
200 : {
201 : return NS_ERROR_NOT_IMPLEMENTED;
202 : }
203 :
204 : /* void cleanup (in boolean aDestroyingFrames); */
205 : NS_IMETHODIMP nsInlineSpellChecker::Cleanup(bool aDestroyingFrames)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* attribute boolean enableRealTimeSpell; */
211 : NS_IMETHODIMP nsInlineSpellChecker::GetEnableRealTimeSpell(bool *aEnableRealTimeSpell)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 : NS_IMETHODIMP nsInlineSpellChecker::SetEnableRealTimeSpell(bool aEnableRealTimeSpell)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* void spellCheckAfterEditorChange (in long aAction, in nsISelection aSelection, in nsIDOMNode aPreviousSelectedNode, in long aPreviousSelectedOffset, in nsIDOMNode aStartNode, in long aStartOffset, in nsIDOMNode aEndNode, in long aEndOffset); */
221 : NS_IMETHODIMP nsInlineSpellChecker::SpellCheckAfterEditorChange(int32_t aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, int32_t aPreviousSelectedOffset, nsIDOMNode *aStartNode, int32_t aStartOffset, nsIDOMNode *aEndNode, int32_t aEndOffset)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* void spellCheckRange (in nsIDOMRange aSelection); */
227 : NS_IMETHODIMP nsInlineSpellChecker::SpellCheckRange(nsIDOMRange *aSelection)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* nsIDOMRange getMisspelledWord (in nsIDOMNode aNode, in long aOffset); */
233 : NS_IMETHODIMP nsInlineSpellChecker::GetMisspelledWord(nsIDOMNode *aNode, int32_t aOffset, nsIDOMRange * *_retval)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
239 : NS_IMETHODIMP nsInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, int32_t aOffset, const nsAString & aNewword)
240 : {
241 : return NS_ERROR_NOT_IMPLEMENTED;
242 : }
243 :
244 : /* void addWordToDictionary (in AString aWord); */
245 : NS_IMETHODIMP nsInlineSpellChecker::AddWordToDictionary(const nsAString & aWord)
246 : {
247 : return NS_ERROR_NOT_IMPLEMENTED;
248 : }
249 :
250 : /* void removeWordFromDictionary (in AString aWord); */
251 : NS_IMETHODIMP nsInlineSpellChecker::RemoveWordFromDictionary(const nsAString & aWord)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* void ignoreWord (in AString aWord); */
257 : NS_IMETHODIMP nsInlineSpellChecker::IgnoreWord(const nsAString & aWord)
258 : {
259 : return NS_ERROR_NOT_IMPLEMENTED;
260 : }
261 :
262 : /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
263 : NS_IMETHODIMP nsInlineSpellChecker::IgnoreWords(const char16_t * *aWordsToIgnore, uint32_t aCount)
264 : {
265 : return NS_ERROR_NOT_IMPLEMENTED;
266 : }
267 :
268 : /* void updateCurrentDictionary (); */
269 : NS_IMETHODIMP nsInlineSpellChecker::UpdateCurrentDictionary()
270 : {
271 : return NS_ERROR_NOT_IMPLEMENTED;
272 : }
273 :
274 : /* readonly attribute boolean spellCheckPending; */
275 : NS_IMETHODIMP nsInlineSpellChecker::GetSpellCheckPending(bool *aSpellCheckPending)
276 : {
277 : return NS_ERROR_NOT_IMPLEMENTED;
278 : }
279 :
280 : /* End of implementation class template. */
281 : #endif
282 :
283 :
284 : #define MOZ_INLINESPELLCHECKER_CONTRACTID "@mozilla.org/spellchecker-inline;1"
285 :
286 : #endif /* __gen_nsIInlineSpellChecker_h__ */
|