]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormMathsMatrix.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormMathsMatrix.h
1 // -*- C++ -*-
2 /**
3  * \file FormMathsMatrix.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_MATHSMATRIX_H
15 #define FORM_MATHSMATRIX_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_matrix;
26
27 /**
28  * This class provides an XForms implementation of the maths matrix.
29  */
30 class FormMathsMatrix : public FormMathsSub {
31 public:
32         FormMathsMatrix(LyXView &, Dialogs &, FormMathsPanel const &);
33         ///
34         int AlignFilter(char const *, int);
35
36 private:
37         /// Build the dialog
38         virtual void build();
39         /// input handler
40         virtual bool input(FL_OBJECT *, long);
41         /// Apply from dialog (modify or create inset)
42         virtual void apply();
43
44         /// Pointer to the actual instantiation of the xforms form
45         virtual FL_FORM * form() const;
46
47         // Real GUI implementation
48         boost::scoped_ptr<FD_maths_matrix> dialog_;
49 };
50
51 #endif //  FORM_MATHSMATRIX_H