Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / spellchecker / nsIInlineSpellChecker.idl
blobd6f66a793d900ab597e64b55c9422ed50ebc5c6f
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
7 #include "domstubs.idl"
9 interface nsIEditor;
10 interface nsIEditorSpellCheck;
12 webidl Node;
13 webidl Range;
15 [scriptable, uuid(b7b7a77c-40c4-4196-b0b7-b0338243b3fe)]
16 interface nsIInlineSpellChecker : nsISupports
18 readonly attribute nsIEditorSpellCheck spellChecker;
20 void init(in nsIEditor aEditor);
21 void cleanup(in boolean aDestroyingFrames);
23 attribute boolean enableRealTimeSpell;
25 void spellCheckRange(in Range aSelection);
27 Range getMisspelledWord(in Node aNode, in unsigned long aOffset);
28 [can_run_script]
29 void replaceWord(in Node aNode,
30 in unsigned long aOffset,
31 in AString aNewword);
32 void addWordToDictionary(in AString aWord);
33 void removeWordFromDictionary(in AString aWord);
35 void ignoreWord(in AString aWord);
36 void ignoreWords(in Array<AString> aWordsToIgnore);
37 void updateCurrentDictionary();
39 readonly attribute boolean spellCheckPending;