1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/txtsvc/public/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 "df635540-d073-47b8-8678-18776130691d"
30 :
31 : #define NS_IINLINESPELLCHECKER_IID \
32 : {0xdf635540, 0xd073, 0x47b8, \
33 : { 0x86, 0x78, 0x18, 0x77, 0x61, 0x30, 0x69, 0x1d }}
34 :
35 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIInlineSpellChecker : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINLINESPELLCHECKER_IID)
39 :
40 : /* readonly attribute nsIEditorSpellCheck spellChecker; */
41 : NS_SCRIPTABLE NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) = 0;
42 :
43 : /* void init (in nsIEditor aEditor); */
44 : NS_SCRIPTABLE NS_IMETHOD Init(nsIEditor *aEditor) = 0;
45 :
46 : /* void cleanup (in boolean aDestroyingFrames); */
47 : NS_SCRIPTABLE NS_IMETHOD Cleanup(bool aDestroyingFrames) = 0;
48 :
49 : /* attribute boolean enableRealTimeSpell; */
50 : NS_SCRIPTABLE NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) = 0;
51 : NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) = 0;
55 :
56 : /* void spellCheckRange (in nsIDOMRange aSelection); */
57 : NS_SCRIPTABLE NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) = 0;
58 :
59 : /* nsIDOMRange getMisspelledWord (in nsIDOMNode aNode, in long aOffset); */
60 : NS_SCRIPTABLE NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange * *_retval NS_OUTPARAM) = 0;
61 :
62 : /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
63 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) = 0;
64 :
65 : /* void addWordToDictionary (in AString aWord); */
66 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const nsAString & aWord) = 0;
67 :
68 : /* void removeWordFromDictionary (in AString aWord); */
69 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) = 0;
70 :
71 : /* void ignoreWord (in AString aWord); */
72 : NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const nsAString & aWord) = 0;
73 :
74 : /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
75 : NS_SCRIPTABLE NS_IMETHOD IgnoreWords(const PRUnichar * *aWordsToIgnore, PRUint32 aCount) = 0;
76 :
77 : /* void updateCurrentDictionary (); */
78 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) = 0;
79 :
80 : };
81 :
82 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIInlineSpellChecker, NS_IINLINESPELLCHECKER_IID)
83 :
84 : /* Use this macro when declaring classes that implement this interface. */
85 : #define NS_DECL_NSIINLINESPELLCHECKER \
86 : NS_SCRIPTABLE NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker); \
87 : NS_SCRIPTABLE NS_IMETHOD Init(nsIEditor *aEditor); \
88 : NS_SCRIPTABLE NS_IMETHOD Cleanup(bool aDestroyingFrames); \
89 : NS_SCRIPTABLE NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell); \
90 : NS_SCRIPTABLE NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell); \
91 : NS_SCRIPTABLE NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset); \
92 : NS_SCRIPTABLE NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection); \
93 : NS_SCRIPTABLE NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange * *_retval NS_OUTPARAM); \
94 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword); \
95 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const nsAString & aWord); \
96 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord); \
97 : NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const nsAString & aWord); \
98 : NS_SCRIPTABLE NS_IMETHOD IgnoreWords(const PRUnichar * *aWordsToIgnore, PRUint32 aCount); \
99 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void);
100 :
101 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
102 : #define NS_FORWARD_NSIINLINESPELLCHECKER(_to) \
103 : NS_SCRIPTABLE NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) { return _to GetSpellChecker(aSpellChecker); } \
104 : NS_SCRIPTABLE NS_IMETHOD Init(nsIEditor *aEditor) { return _to Init(aEditor); } \
105 : NS_SCRIPTABLE NS_IMETHOD Cleanup(bool aDestroyingFrames) { return _to Cleanup(aDestroyingFrames); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) { return _to GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
107 : NS_SCRIPTABLE NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) { return _to SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
108 : NS_SCRIPTABLE NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) { return _to SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
109 : NS_SCRIPTABLE NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) { return _to SpellCheckRange(aSelection); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange * *_retval NS_OUTPARAM) { return _to GetMisspelledWord(aNode, aOffset, _retval); } \
111 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) { return _to ReplaceWord(aNode, aOffset, aNewword); } \
112 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const nsAString & aWord) { return _to AddWordToDictionary(aWord); } \
113 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) { return _to RemoveWordFromDictionary(aWord); } \
114 : NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const nsAString & aWord) { return _to IgnoreWord(aWord); } \
115 : NS_SCRIPTABLE NS_IMETHOD IgnoreWords(const PRUnichar * *aWordsToIgnore, PRUint32 aCount) { return _to IgnoreWords(aWordsToIgnore, aCount); } \
116 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) { return _to UpdateCurrentDictionary(); }
117 :
118 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
119 : #define NS_FORWARD_SAFE_NSIINLINESPELLCHECKER(_to) \
120 : NS_SCRIPTABLE NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpellChecker(aSpellChecker); } \
121 : NS_SCRIPTABLE NS_IMETHOD Init(nsIEditor *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aEditor); } \
122 : NS_SCRIPTABLE NS_IMETHOD Cleanup(bool aDestroyingFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->Cleanup(aDestroyingFrames); } \
123 : NS_SCRIPTABLE NS_IMETHOD GetEnableRealTimeSpell(bool *aEnableRealTimeSpell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
124 : NS_SCRIPTABLE NS_IMETHOD SetEnableRealTimeSpell(bool aEnableRealTimeSpell) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
125 : NS_SCRIPTABLE NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
126 : NS_SCRIPTABLE NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckRange(aSelection); } \
127 : NS_SCRIPTABLE NS_IMETHOD GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMisspelledWord(aNode, aOffset, _retval); } \
128 : NS_SCRIPTABLE NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceWord(aNode, aOffset, aNewword); } \
129 : NS_SCRIPTABLE NS_IMETHOD AddWordToDictionary(const nsAString & aWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWordToDictionary(aWord); } \
130 : NS_SCRIPTABLE NS_IMETHOD RemoveWordFromDictionary(const nsAString & aWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWordFromDictionary(aWord); } \
131 : NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const nsAString & aWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(aWord); } \
132 : NS_SCRIPTABLE NS_IMETHOD IgnoreWords(const PRUnichar * *aWordsToIgnore, PRUint32 aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWords(aWordsToIgnore, aCount); } \
133 : NS_SCRIPTABLE NS_IMETHOD UpdateCurrentDictionary(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCurrentDictionary(); }
134 :
135 : #if 0
136 : /* Use the code below as a template for the implementation class for this interface. */
137 :
138 : /* Header file */
139 : class nsInlineSpellChecker : public nsIInlineSpellChecker
140 : {
141 : public:
142 : NS_DECL_ISUPPORTS
143 : NS_DECL_NSIINLINESPELLCHECKER
144 :
145 : nsInlineSpellChecker();
146 :
147 : private:
148 : ~nsInlineSpellChecker();
149 :
150 : protected:
151 : /* additional members */
152 : };
153 :
154 : /* Implementation file */
155 : NS_IMPL_ISUPPORTS1(nsInlineSpellChecker, nsIInlineSpellChecker)
156 :
157 : nsInlineSpellChecker::nsInlineSpellChecker()
158 : {
159 : /* member initializers and constructor code */
160 : }
161 :
162 : nsInlineSpellChecker::~nsInlineSpellChecker()
163 : {
164 : /* destructor code */
165 : }
166 :
167 : /* readonly attribute nsIEditorSpellCheck spellChecker; */
168 : NS_IMETHODIMP nsInlineSpellChecker::GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* void init (in nsIEditor aEditor); */
174 : NS_IMETHODIMP nsInlineSpellChecker::Init(nsIEditor *aEditor)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* void cleanup (in boolean aDestroyingFrames); */
180 : NS_IMETHODIMP nsInlineSpellChecker::Cleanup(bool aDestroyingFrames)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* attribute boolean enableRealTimeSpell; */
186 : NS_IMETHODIMP nsInlineSpellChecker::GetEnableRealTimeSpell(bool *aEnableRealTimeSpell)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 : NS_IMETHODIMP nsInlineSpellChecker::SetEnableRealTimeSpell(bool aEnableRealTimeSpell)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* 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); */
196 : NS_IMETHODIMP nsInlineSpellChecker::SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* void spellCheckRange (in nsIDOMRange aSelection); */
202 : NS_IMETHODIMP nsInlineSpellChecker::SpellCheckRange(nsIDOMRange *aSelection)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* nsIDOMRange getMisspelledWord (in nsIDOMNode aNode, in long aOffset); */
208 : NS_IMETHODIMP nsInlineSpellChecker::GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange * *_retval NS_OUTPARAM)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
214 : NS_IMETHODIMP nsInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* void addWordToDictionary (in AString aWord); */
220 : NS_IMETHODIMP nsInlineSpellChecker::AddWordToDictionary(const nsAString & aWord)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* void removeWordFromDictionary (in AString aWord); */
226 : NS_IMETHODIMP nsInlineSpellChecker::RemoveWordFromDictionary(const nsAString & aWord)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* void ignoreWord (in AString aWord); */
232 : NS_IMETHODIMP nsInlineSpellChecker::IgnoreWord(const nsAString & aWord)
233 : {
234 : return NS_ERROR_NOT_IMPLEMENTED;
235 : }
236 :
237 : /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
238 : NS_IMETHODIMP nsInlineSpellChecker::IgnoreWords(const PRUnichar * *aWordsToIgnore, PRUint32 aCount)
239 : {
240 : return NS_ERROR_NOT_IMPLEMENTED;
241 : }
242 :
243 : /* void updateCurrentDictionary (); */
244 : NS_IMETHODIMP nsInlineSpellChecker::UpdateCurrentDictionary()
245 : {
246 : return NS_ERROR_NOT_IMPLEMENTED;
247 : }
248 :
249 : /* End of implementation class template. */
250 : #endif
251 :
252 :
253 : #define MOZ_INLINESPELLCHECKER_CONTRACTID "@mozilla.org/spellchecker-inline;1"
254 :
255 : #endif /* __gen_nsIInlineSpellChecker_h__ */
|