add forgotten implementation of "remove from personal dictionary" for enchant spell checker backend

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38360 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-04-13 10:55:51 +00:00
parent 0a65e96ed3
commit 7dda20bc9d
2 changed files with 11 additions and 1 deletions

View File

@ -138,6 +138,16 @@ void EnchantChecker::insert(WordLangTuple const & word)
advanceChangeNumber();
}
}
void EnchantChecker::remove(WordLangTuple const & word)
{
Spellers::iterator it = d->spellers_.find(word.lang()->code());
if (it != d->spellers_.end()) {
it->second.speller->remove(to_utf8(word.word()));
advanceChangeNumber();
}
}
void EnchantChecker::accept(WordLangTuple const & word)

View File

@ -34,7 +34,7 @@ public:
enum Result check(WordLangTuple const &);
void suggest(WordLangTuple const &, docstring_list &);
void insert(WordLangTuple const &);
void remove(WordLangTuple const &) {};
void remove(WordLangTuple const &);
void accept(WordLangTuple const &);
bool hasDictionary(Language const * lang) const;
docstring const error();