]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsDeco.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormMathsDeco.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsDeco.h
4  * See the file COPYING.
5  *
6  * \author Alejandro Aguilar Sierra
7  * \author John Levon
8  * \author Angus Leeming 
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef FORM_MATHSDECO_H
14 #define FORM_MATHSDECO_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "FormMathsPanel.h"
21
22 #include <boost/scoped_ptr.hpp>
23
24 struct FD_maths_deco;
25
26 /**
27  * This class provides an XForms implementation of the maths deco.
28  */
29 class FormMathsDeco : public FormMathsSub {
30 public:
31         ///
32         FormMathsDeco(LyXView &, Dialogs &, FormMathsPanel const &);
33
34 private:
35         /// Build the dialog
36         virtual void build();
37         /// Apply from dialog (modify or create inset)
38         virtual void apply();
39         /// Input selection:
40         virtual bool input(FL_OBJECT *, long);
41
42         /// Pointer to the actual instantiation of the xforms form
43         virtual FL_FORM * form() const;
44
45         // Real GUI implementation
46         boost::scoped_ptr<FD_maths_deco> dialog_;
47
48         /// Current choice
49         int deco_;
50
51 };
52
53 #endif //  FORM_MATHSDECO_H