]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsStyle.h
Yet more dialog tweaking from Rob.
[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 "FormMathsPanel.h"
22
23 #include <boost/scoped_ptr.hpp>
24
25 struct FD_maths_style;
26
27 /**
28  * This class provides an XForms implementation of the maths style.
29  */
30 class FormMathsStyle : public FormMathsSub {
31 public:
32         ///
33         FormMathsStyle(LyXView &, Dialogs &, FormMathsPanel const &);
34
35 private:
36         /// Build the dialog
37         virtual void build();
38         /// input handler
39         virtual bool input(FL_OBJECT *, long);
40         /// Apply from dialog (modify or create inset)
41         virtual void apply();
42
43         /// Pointer to the actual instantiation of the xforms form
44         virtual FL_FORM * form() const;
45
46         // Real GUI implementation
47         boost::scoped_ptr<FD_maths_style> dialog_;
48
49         /// The current choice.
50         int style_;
51 };
52
53 #endif //  FORM_MATHSSTYLE_H