3 * \file ControlSpellchecker.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLSPELLCHECKER_H
13 #define CONTROLSPELLCHECKER_H
19 #include "ControlDialog_impl.h"
21 #include "WordLangTuple.h"
25 /** A controller for Spellchecker dialogs.
27 class ControlSpellchecker : public ControlDialogBD {
30 ControlSpellchecker(LyXView &, Dialogs &);
32 /// replace word with replacement
33 void replace(string const &);
35 /// replace all occurances of word
36 void replaceAll(string const &);
38 /// insert word in personal dictionary
41 /// ignore all occurances of word
47 /// check text until next misspelled/unknown word
51 string getSuggestion();
56 /// returns progress value
61 /// returns exit message
66 /// set the params before show or update
72 virtual void apply() {}
77 /// current word being checked and lang code
80 /// values for progress
91 /// set to true to stop checking
94 /// The actual spellchecker object
98 #endif // CONTROLSPELLCHECKER_H