]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormSpellchecker.h
Convert the spellchecker dialog to the Dialog-based scheme.
[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 #include "FormDialogView.h"
16
17 class ControlSpellchecker;
18 struct FD_spellchecker;
19
20 /** This class provides an XForms implementation of the FormSpellchecker Dialog.
21  */
22 class FormSpellchecker
23         : public FormController<ControlSpellchecker, FormView<FD_spellchecker> > {
24 public:
25         ///
26         FormSpellchecker(Dialog &);
27 private:
28         /// not needed.
29         virtual void apply() {}
30         /// Build the dialog
31         virtual void build();
32         ///
33         virtual void update();
34
35         /// set suggestions and exit message
36         virtual void partialUpdate(int);
37
38         /// Filter the inputs
39         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
40 };
41
42 #endif // FORMSPELLCHECKER_H