3 * \file GuiSpellchecker.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Kalle Dalheimer
11 * Full author contact details are available in file CREDITS.
14 #ifndef GUISPELLCHECKER_H
15 #define GUISPELLCHECKER_H
17 #include "GuiDialog.h"
18 #include "ui_SpellcheckerUi.h"
20 #include "WordLangTuple.h"
22 class QListWidgetItem;
31 class GuiSpellchecker : public GuiDialog, public Ui::SpellcheckerUi
36 GuiSpellchecker(GuiView & lv);
39 void suggestionChanged(QListWidgetItem *);
42 /// ignore all occurances of word
47 void replaceChanged(const QString &);
51 /// update from controller
52 void updateSuggestions(docstring_list & words);
54 void updateContents();
57 bool initialiseParams(std::string const & data);
61 void dispatchParams() {}
63 bool isBufferDependent() const { return true; }
65 /// replace word with replacement
66 void replace(docstring const &);
68 /// replace all occurances of word
69 void replaceAll(docstring const &);
70 /// insert word in personal dictionary
72 /// check text until next misspelled/unknown word
73 /// returns true when finished
75 /// show count of checked words at normal exit
78 /// current word being checked and lang code
80 /// values for progress
87 } // namespace frontend
90 #endif // GUISPELLCHECKER_H