]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormSpellchecker.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file FormSpellchecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef FORMSPELLCHECKER_H
13 #define FORMSPELLCHECKER_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20
21 class ControlSpellchecker;
22 struct FD_spellchecker;
23
24 /** This class provides an XForms implementation of the FormSpellchecker Dialog.
25  */
26 class FormSpellchecker : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
27 public:
28         ///
29         FormSpellchecker();
30 private:
31         /// not needed.
32         void apply() {}
33         /// Build the dialog
34         void build();
35         ///
36         void update();
37
38         /// enable/disable widgets when start/stop; return running status
39         bool start(bool init = false);
40
41         /// update progress bar, set suggestions, exit message
42         void partialUpdate(int);
43
44         /// show an error message
45         void showMessage(const char * msg);
46
47         /// Filter the inputs
48         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
49 };
50
51 #endif // FORMSPELLCHECKER_H