]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormSpellchecker.h
2002-07-02 Lars Gullik Bj�nnes <larsbj@birdstep.com>
[lyx.git] / src / frontends / xforms / FormSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file FormSpellchecker.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #ifndef FORMSPELLCHECKER_H
11 #define FORMSPELLCHECKER_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "FormBase.h"
18
19 class ControlSpellchecker;
20 struct FD_spellchecker;
21
22 /** This class provides an XForms implementation of the FormSpellchecker Dialog.
23  */
24 class FormSpellchecker : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
25 public:
26         ///
27         FormSpellchecker(ControlSpellchecker &, Dialogs &);
28 private:
29         /// not needed.
30         void apply() {}
31         /// Build the dialog
32         void build();
33         ///
34         void update();
35
36         /// enable/disable widgets when start/stop
37         void stop(bool);
38
39         /// update progress bar, set suggestions, exit message
40         void partialUpdate(int);
41
42         /// show an error message
43         void showMessage(const char * msg);
44
45         /// Filter the inputs
46         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
47 };
48
49 #endif // FORMSPELLCHECKER_H