]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsSpace.h
Rewrote the maths panel so that ALL the popups now derive from FormBaseBD,
[lyx.git] / src / frontends / xforms / FormMathsSpace.h
1 /** 
2  * \file FormMathsSpace.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  * 
6  * \author Alejandro Aguilar Sierra 
7  * \author John Levon, moz@compsoc.man.ac.uk
8  * \author Angus Leeming, a.leeming@ic.ac.uk
9  */
10
11 #ifndef FORM_MATHSSPACE_H
12 #define FORM_MATHSSPACE_H
13
14 #include <boost/smart_ptr.hpp>
15
16 #ifdef __GNUG_
17 #pragma interface
18 #endif
19
20 #include "FormMathsPanel.h"
21
22 struct FD_form_maths_space;
23
24 /** 
25  * This class provides an XForms implementation of the maths space.
26  */
27 class FormMathsSpace : public FormMathsSub {
28 public:
29         ///
30         FormMathsSpace(LyXView *, Dialogs *, FormMathsPanel const &);
31
32 private:
33         /// Build the popup
34         virtual void build();
35         /// input handler
36         virtual bool input(FL_OBJECT *, long);
37         /// Apply from dialog (modify or create inset)
38         virtual void apply();
39
40         /// Pointer to the actual instantiation of the xforms form
41         virtual FL_FORM * form() const;
42
43         // build the popup
44         FD_form_maths_space * build_maths_space();
45         
46         // Real GUI implementation
47         boost::scoped_ptr<FD_form_maths_space> dialog_;
48
49         /// The current choice.
50         short space_;
51 };
52
53 #endif //  FORM_MATHSSPACE_H