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
16 #include "ControlDialog_impl.h"
18 #include "WordLangTuple.h"
22 /** A controller for Spellchecker dialogs.
24 class ControlSpellchecker : public ControlDialogBD {
27 ControlSpellchecker(LyXView &, Dialogs &);
29 /// replace word with replacement
30 void replace(string const &);
32 /// replace all occurances of word
33 void replaceAll(string const &);
35 /// insert word in personal dictionary
38 /// ignore all occurances of word
44 /// check text until next misspelled/unknown word
48 string const getSuggestion() const;
51 string const getWord() const;
53 /// returns progress value
54 int getProgress() const { return oldval_; }
56 /// returns exit message
57 string const getMessage() const { return message_; }
59 /// returns word count
60 int getCount() const { return count_; }
63 /// set the params before show or update
69 virtual void apply() {}
71 /// current word being checked and lang code
74 /// values for progress
85 /// set to true to stop checking
88 /// The actual spellchecker object
92 #endif // CONTROLSPELLCHECKER_H