]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xymatrixinset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_xymatrixinset.C
1 #include <config.h>
2
3
4 #include "math_xymatrixinset.h"
5 #include "math_mathmlstream.h"
6 #include "math_streamstr.h"
7
8
9 MathXYMatrixInset::MathXYMatrixInset()
10         : MathGridInset(1, 1)
11 {}
12
13
14 MathInset * MathXYMatrixInset::clone() const
15 {
16         return new MathXYMatrixInset(*this);
17 }
18
19
20 int MathXYMatrixInset::colsep() const
21 {
22         return 40;
23 }
24
25
26 int MathXYMatrixInset::rowsep() const
27 {
28         return 40;
29 }
30
31
32 void MathXYMatrixInset::metrics(MathMetricsInfo & st) const
33 {
34         MathMetricsInfo mi = st;
35         if (mi.base.style == LM_ST_DISPLAY)
36                 mi.base.style = LM_ST_TEXT;
37         MathGridInset::metrics(mi);
38 }
39
40
41 void MathXYMatrixInset::write(WriteStream & os) const
42 {
43         os << "\\xymatrix{";
44         MathGridInset::write(os);
45         os << "}\n";
46 }
47
48
49 void MathXYMatrixInset::normalize(NormalStream & os) const
50 {
51         os << "[xymatrix ";
52         MathGridInset::normalize(os);
53         os << ']';
54 }
55
56
57 void MathXYMatrixInset::maple(MapleStream & os) const
58 {
59         os << "xymatrix(";
60         MathGridInset::maple(os);
61         os << ')';
62 }