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