]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSpellchecker.h
enable Font cache only for MacOSX and inline width() for other platform.
[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
18 namespace lyx {
19 namespace frontend {
20
21 class ControlSpellchecker;
22 class QSpellcheckerDialog;
23
24
25 class QSpellchecker
26         : public QController<ControlSpellchecker, QView<QSpellcheckerDialog> >
27 {
28 public:
29         friend class QSpellcheckerDialog;
30
31         QSpellchecker(Dialog &);
32
33         /// update from controller
34         void partialUpdate(int id);
35 private:
36         void accept();
37         void add();
38         void ignore();
39         void replace();
40
41         /// Apply changes
42         virtual void apply() {}
43         ///
44         virtual void update_contents();
45         /// build the dialog
46         virtual void build_dialog();
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // QSPELLCHECKER_H