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