]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsDeco.h
implement getLabelList
[lyx.git] / src / frontends / xforms / FormMathsDeco.h
1 /** 
2  * \file FormMathsDeco.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_MATHSDECO_H
12 #define FORM_MATHSDECO_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_deco;
23
24 /** 
25  * This class provides an XForms implementation of the maths deco.
26  */
27 class FormMathsDeco : public FormMathsSub {
28 public:
29         ///
30         FormMathsDeco(LyXView *, Dialogs *, FormMathsPanel const &);
31
32 private:
33         /// Build the dialog
34         virtual void build();
35         /// Apply from dialog (modify or create inset)
36         virtual void apply();
37
38         /// Pointer to the actual instantiation of the xforms form
39         virtual FL_FORM * form() const;
40
41         // build the form
42         FD_form_maths_deco * build_maths_deco();
43         
44         // Real GUI implementation
45         boost::scoped_ptr<FD_form_maths_deco> dialog_;
46 };
47
48 #endif //  FORM_MATHSDECO_H