no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / extensions / spellcheck / idl / mozIPersonalDictionary.idl
blob61cdf4c48d262cbcb3289a2b2ce5ae5deb3821d2
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;
10 /**
11 * This interface represents a Personal Dictionary.
13 [scriptable, uuid(7EF52EAF-B7E1-462B-87E2-5D1DBACA9048)]
14 interface mozIPersonalDictionary : nsISupports {
16 /**
17 * Load the dictionary
19 void load();
21 /**
22 * Save the dictionary
24 void save();
26 /**
27 * Get the (lexicographically sorted) list of words
29 readonly attribute nsIStringEnumerator wordList;
31 /**
32 * Check a unicode string
34 boolean check(in AString word);
36 /**
37 * Add a word to the personal dictionary
39 void addWord(in AString word);
41 /**
42 * Remove a word from the personal dictionary
44 void removeWord(in AString word);
46 /**
47 * Add a word to the ignore all list
49 void ignoreWord(in AString word);
51 /**
52 * Clear the ignore list
54 void endSession();