]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathXYMatrix.h
Get MathML output for XHTML working a bit.
[lyx.git] / src / mathed / InsetMathXYMatrix.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathXYMatrix.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_XYMATRIX_H
13 #define MATH_XYMATRIX_H
14
15 #include "Length.h"
16 #include "InsetMathGrid.h"
17
18
19 namespace lyx {
20
21
22 class InsetMathXYMatrix : public InsetMathGrid {
23 public:
24         ///
25         InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0');
26         ///
27         void metrics(MetricsInfo &, Dimension &) const;
28         ///
29         InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
30         ///
31         virtual int colsep() const;
32         ///
33         virtual int rowsep() const;
34
35         ///
36         void normalize();
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void infoize(odocstream & os) const;
41         ///
42         void normalize(NormalStream &) const;
43         ///
44         void maple(MapleStream &) const;
45         ///
46         void validate(LaTeXFeatures & features) const;
47         ///
48         InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
49
50 private:
51         ///
52         virtual Inset * clone() const;
53         /// extra spacing, may be empty
54         Length spacing_;
55         ///
56         char spacing_code_;
57 };
58
59
60
61 } // namespace lyx
62 #endif