3 * \file GSpellchecker.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 GSPELLCHECKER_H
13 #define GSPELLCHECKER_H
15 #include "GViewBase.h"
20 class ControlSpellchecker;
22 /** This class provides a GTK+ implementation of the FormSpellchecker Dialog.
25 : public GViewCB<ControlSpellchecker, GViewGladeB> {
28 GSpellchecker(Dialog &);
31 virtual void apply() {}
33 virtual void doBuild();
35 virtual void update() {}
39 // Fill in unknown word, suggestions, progress from backend
40 virtual void partialUpdate(int);
42 Glib::RefPtr<Gtk::ListStore> suggestionsstore_;
43 Glib::RefPtr<Gtk::TreeSelection> suggestionssel_;
45 Gtk::TreeModelColumn<Glib::ustring> listCol_;
46 Gtk::TreeModel::ColumnRecord listCols_;
48 Gtk::TreeView * suggestionsview_;
49 Gtk::Entry * replacemententry_;
50 Gtk::Entry * unknownentry_;
51 Gtk::ProgressBar * progress_;
52 Gtk::Button * ignorebutton_;
55 void onReplace(bool const all);
56 // Suggestion list single click
57 void onSuggestionSelection();
58 // Suggestion list double click
59 void onSuggestionActivate(Gtk::TreeModel::Path const & path, Gtk::TreeViewColumn * col);
68 } // namespace frontend
71 #endif // GSPELLCHECKER_H