]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormSpellchecker.h
having broken Rob's word count update, I guess I should fix it too ;-)
[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
27         : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
28 public:
29         ///
30         FormSpellchecker();
31 private:
32         /// not needed.
33         virtual void apply() {}
34         /// Build the dialog
35         virtual void build();
36         ///
37         virtual void update();
38
39         /// set suggestions and exit message
40         virtual void partialUpdate(int);
41
42         /// Filter the inputs
43         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
44
45         ///
46         enum State {
47                 READY_TO_START,
48                 STARTED,
49                 CHECKING,
50                 STOPPED
51         };
52         ///
53         void updateState(State state);
54         ///
55         State state_;
56 };
57
58 #endif // FORMSPELLCHECKER_H