]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellchecker.h
build fixes
[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 spellcheck();
39
40         /// Apply changes
41         virtual void apply() {};
42         /// update
43         virtual void update_contents();
44         /// build the dialog
45         virtual void build_dialog();
46 };
47
48 #endif // QSPELLCHECKER_H