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