]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsDeco.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormMathsDeco.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsDeco.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author John Levon
9  * \author Angus Leeming 
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef FORM_MATHSDECO_H
15 #define FORM_MATHSDECO_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22
23 class ControlMathSub;
24 struct FD_maths_deco;
25
26 /**
27  * This class provides an XForms implementation of the maths deco.
28  */
29 class FormMathsDeco : public FormCB<ControlMathSub, FormDB<FD_maths_deco> > {
30 public:
31         ///
32         FormMathsDeco();
33
34 private:
35         ///
36         virtual void apply();
37         ///
38         virtual void build();
39         ///
40         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
41         /// Not needed.
42         virtual void update() {}
43
44         /// Current choice
45         int deco_;
46 };
47
48 #endif //  FORM_MATHSDECO_H