nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/spellchecker/personaldictionary;1
. To access this service, use
var personalDictionary = Components.classes["@mozilla.org/spellchecker/personaldictionary;1"] .getService(Components.interfaces.mozIPersonalDictionary);
void addCorrection(in wstring word,in wstring correction, in wstring lang); |
void addWord(in wstring word, in wstring lang); |
boolean check(in wstring word, in wstring lang); |
void endSession(); |
void getCorrection(in wstring word, [array, size_is(count)] out wstring words, out PRUint32 count); |
void ignoreWord(in wstring word); |
void load(); |
void removeCorrection(in wstring word,in wstring correction, in wstring lang); |
void removeWord(in wstring word, in wstring lang); |
void save(); |
Attribute | Type | Description |
wordList |
| Get the (lexicographically sorted) list of words. Read only. |
Adds a misspelling to the list of corrections. Note that this method is not currently implemented.
void addCorrection( in wstring word, in wstring correction, in wstring lang );
word
correction
lang
Add a word to the personal dictionary.
void addWord( in wstring word, in wstring lang );
word
lang
Checks a Unicode string.
boolean check( in wstring word, in wstring lang );
word
lang
true
if the word is in either the dictionary or the ignore list, false
if it is not in either list.
Clears the ignore list.
void endSession();
None.
Gets a list of previous corrections for the word.
void getCorrection( in wstring word, [array, size_is(count)] out wstring words, out PRUint32 count );
word
words
count
Adds a word to the ignore all list.
void ignoreWord( in wstring word );
word
Loads the dictionary.
void load();
None.
Removes a misspelling from the list of corrections. This removes a single misspelling and correction pair from the list.
void removeCorrection( in wstring word, in wstring correction, in wstring lang );
word
correction
lang
Only an entry matching both word
and correction
will be removed from the list of corrections.
Removes a word from the personal dictionary.
void removeWord( in wstring word, in wstring lang );
word
lang
Saves the dictionary.
void save();
None.