1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
8 interface nsIStringEnumerator
;
11 * This interface represents a Personal Dictionary.
13 [scriptable
, uuid(7EF52EAF
-B7E1
-462B
-87E2
-5D1DBACA9048
)]
14 interface mozIPersonalDictionary
: nsISupports
{
27 * Get the (lexicographically sorted) list of words
29 readonly attribute nsIStringEnumerator wordList
;
32 * Check a unicode string
34 boolean check
(in AString word
);
37 * Add a word to the personal dictionary
39 void addWord
(in AString word
);
42 * Remove a word from the personal dictionary
44 void removeWord
(in AString word
);
47 * Add a word to the ignore all list
49 void ignoreWord
(in AString word
);
52 * Clear the ignore list