mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
0a65e96ed3
commit
7dda20bc9d
@ -140,6 +140,16 @@ void EnchantChecker::insert(WordLangTuple const & word)
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
Spellers::iterator it = d->spellers_.find(word.lang()->code());
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user