]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellchecker.h
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / 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 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21
22 class ControlSpellchecker;
23 class QSpellcheckerDialog;
24
25
26 class QSpellchecker :
27         public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
28 {
29         friend class QSpellcheckerDialog;
30
31 public:
32         QSpellchecker();
33
34         /// update from controller
35         void partialUpdate(int id);
36
37 private:
38         void stop();
39         void accept();
40         void add();
41         void ignore();
42         void replace();
43         void spellcheck();
44
45         /// Apply changes
46         virtual void apply() {};
47         /// update
48         virtual void update_contents();
49         /// build the dialog
50         virtual void build_dialog();
51 };
52
53 #endif // QSPELLCHECKER_H