]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsDeco.h
xforms clean-up, described in detail in my mail of 31 May. See
[lyx.git] / src / frontends / xforms / FormMathsDeco.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsDeco.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_MATHSDECO_H
13 #define FORM_MATHSDECO_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormMathsPanel.h"
20
21 #include <boost/scoped_ptr.hpp>
22
23 struct FD_maths_deco;
24
25 /**
26  * This class provides an XForms implementation of the maths deco.
27  */
28 class FormMathsDeco : public FormMathsSub {
29 public:
30         ///
31         FormMathsDeco(LyXView *, Dialogs *, FormMathsPanel const &);
32
33 private:
34         /// Build the dialog
35         virtual void build();
36         /// Apply from dialog (modify or create inset)
37         virtual void apply();
38         /// Input selection:
39         virtual bool input(FL_OBJECT *, long);
40
41         /// Pointer to the actual instantiation of the xforms form
42         virtual FL_FORM * form() const;
43
44         // Real GUI implementation
45         boost::scoped_ptr<FD_maths_deco> dialog_;
46
47         /// Current choice
48         int deco_;
49
50 };
51
52 #endif //  FORM_MATHSDECO_H