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