-void GuiSpellchecker::replace(docstring const & replacement)
-{
- LYXERR(Debug::GUI, "GuiSpellchecker::replace("
- << to_utf8(replacement) << ")");
- cap::replaceSelectionWithString(bufferview()->cursor(), replacement, true);
- buffer().markDirty();
- // If we used an LFUN, we would not need that
- bufferview()->processUpdateFlags(Update::Force | Update::FitCursor);
- // fix up the count
- --count_;
- check();
-}
-
-
-void GuiSpellchecker::replaceAll(docstring const & replacement)
-{
- // TODO: add to list
- replace(replacement);
-}
-
-
-void GuiSpellchecker::insert()
-{
- speller_->insert(word_);
- check();
-}
-
-
-docstring GuiSpellchecker::getSuggestion() const
-{
- return speller_->nextMiss();
-}
-
-
-docstring GuiSpellchecker::getWord() const
-{
- return word_.word();
-}
-
-
-void GuiSpellchecker::ignoreAll()
-{
- speller_->accept(word_);
- check();
-}
-
-