]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSpellchecker.h
Fix unreported bug related to 3246 by Richard Heck:
[lyx.git] / src / frontends / qt4 / QSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file QSpellchecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QSPELLCHECKER_H
14 #define QSPELLCHECKER_H
15
16 #include "QDialogView.h"
17 #include "QSpellcheckerDialog.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlSpellchecker;
23
24 class QSpellchecker
25         : public QController<ControlSpellchecker, QView<QSpellcheckerDialog> >
26 {
27 public:
28         friend class QSpellcheckerDialog;
29
30         QSpellchecker(Dialog &);
31
32         /// update from controller
33         void partialUpdate(int id);
34 private:
35         void accept();
36         void add();
37         void ignore();
38         void replace();
39
40         /// Apply changes
41         virtual void apply() {}
42         ///
43         virtual void update_contents();
44         /// build the dialog
45         virtual void build_dialog();
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // QSPELLCHECKER_H