]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xymatrixinset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_xymatrixinset.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "math_xymatrixinset.h"
8 #include "math_mathmlstream.h"
9 #include "math_streamstr.h"
10
11
12 MathXYMatrixInset::MathXYMatrixInset()
13         : MathGridInset(1, 1)
14 {}
15
16
17 MathInset * MathXYMatrixInset::clone() const
18 {
19         return new MathXYMatrixInset(*this);
20 }
21
22
23 int MathXYMatrixInset::colsep() const
24 {
25         return 40;
26 }
27
28
29 int MathXYMatrixInset::rowsep() const
30 {
31         return 40;
32 }
33
34
35 void MathXYMatrixInset::metrics(MathMetricsInfo const & st) const
36 {
37         MathMetricsInfo mi = st;
38         if (mi.style == LM_ST_DISPLAY)
39                 mi.style = LM_ST_TEXT;
40         MathGridInset::metrics(mi);
41 }
42
43
44 void MathXYMatrixInset::write(WriteStream & os) const
45 {
46         os << "\\xymatrix{";
47         MathGridInset::write(os);
48         os << "}\n";
49 }
50
51
52 void MathXYMatrixInset::normalize(NormalStream & os) const
53 {
54         os << "[xymatrix ";
55         MathGridInset::normalize(os);
56         os << "]";
57 }
58
59
60 void MathXYMatrixInset::maplize(MapleStream & os) const
61 {
62         os << "xymatrix(";
63         MathGridInset::maplize(os);
64         os << ")";
65 }