}
+void GuiSpellchecker::forward()
+{
+ dispatch(FuncRequest(LFUN_ESCAPE));
+ dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+}
+
+
void GuiSpellchecker::on_languageCO_activated(int index)
{
string const lang =
/// replace all occurrences of word
if (d->word_.lang() && !d->word_.word().empty())
theSpellChecker()->accept(d->word_);
+ forward();
check();
}
{
/// insert word in personal dictionary
theSpellChecker()->insert(d->word_);
+ forward();
check();
}
void GuiSpellchecker::on_ignorePB_clicked()
{
- dispatch(FuncRequest(LFUN_ESCAPE));
- dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+ forward();
check();
}
bool needBufferOpen() const { return true; }
///}
+ /// move to next position after current word
+ void forward();
/// check text until next misspelled/unknown word
- /// returns true when finished
void check();
/// show count of checked words at normal exit
void showSummary();