]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsStyle.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormMathsStyle.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsStyle.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_MATHSSTYLE_H
15 #define FORM_MATHSSTYLE_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22
23 class ControlMathSub;
24 struct FD_maths_style;
25
26 /**
27  * This class provides an XForms implementation of the maths style.
28  */
29 class FormMathsStyle : public FormCB<ControlMathSub, FormDB<FD_maths_style> > {
30 public:
31         ///
32         FormMathsStyle();
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         /// The current choice.
45         int style_;
46 };
47
48 #endif //  FORM_MATHSSTYLE_H