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"
10 interface nsIEditorSpellCheck
;
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
);
29 void replaceWord
(in Node aNode
,
30 in unsigned long aOffset
,
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
;