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