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;
30 class GuiSpellchecker : public GuiDialog, public Ui::SpellcheckerUi
35 GuiSpellchecker(GuiView & lv);
38 void suggestionChanged(QListWidgetItem *);
45 void replaceChanged(const QString &);
49 /// update from controller
50 void partialUpdate(int id);
52 void updateContents();
56 SPELL_PROGRESSED, //< update progress bar
57 SPELL_FOUND_WORD //< found a bad word
61 bool initialiseParams(std::string const & data);
65 void dispatchParams() {}
67 bool isBufferDependent() const { return true; }
69 bool exitEarly() const { return exitEarly_; }
71 /// replace word with replacement
72 void replace(docstring const &);
74 /// replace all occurances of word
75 void replaceAll(docstring const &);
76 /// insert word in personal dictionary
78 /// ignore all occurances of word
80 /// check text until next misspelled/unknown word
81 /// returns true when finished
83 /// show count of checked words at normal exit
86 /// set to true when spellchecking is finished
88 /// current word being checked and lang code
90 /// values for progress
95 /// The actual spellchecker object
96 SpellChecker * speller_;
99 } // namespace frontend
102 #endif // GUISPELLCHECKER_H