]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellchecker.h
Compile fixes. Qt2 should now build (and fail immediately when you start it,
[lyx.git] / src / frontends / qt2 / QSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file QSpellchecker.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
9  */
10
11 #ifndef QSPELLCHECKER_H
12 #define QSPELLCHECKER_H
13
14 #include "Qt2Base.h"
15
16
17 class ControlSpellchecker;
18 class QSpellcheckerDialog;
19 class Dialogs;
20
21 class QSpellchecker :
22         public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
23 {
24         friend class QSpellcheckerDialog;
25
26 public:
27         QSpellchecker(ControlSpellchecker &, Dialogs &);
28
29         /// update from controller
30         void partialUpdate(int id);
31
32 private:
33         void stop();
34         void accept();
35         void add();
36         void ignore();
37         void replace();
38         void options();
39         void spellcheck();
40
41         /// Apply changes
42         virtual void apply() {};
43         /// update
44         virtual void update_contents();
45         /// build the dialog
46         virtual void build_dialog();
47 };
48
49 #endif // QSPELLCHECKER_H