]> git.lyx.org Git - lyx.git/blob - src/mathed/math_lefteqninset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_lefteqninset.C
1 #ifdef __GNUG__
2 #pragma implementation
3 #endif
4
5 #include "math_lefteqninset.h"
6 #include "math_support.h"
7 #include "support/LOstream.h"
8
9
10 MathLefteqnInset::MathLefteqnInset()
11         : MathNestInset(1)
12 {}
13
14
15 MathInset * MathLefteqnInset::clone() const
16 {
17         return new MathLefteqnInset(*this);
18 }
19
20
21 void MathLefteqnInset::metrics(MathMetricsInfo & mi) const
22 {
23         cell(0).metrics(mi);
24         dim_.a = cell(0).ascent() + 2;
25         dim_.d = cell(0).descent() + 2;
26         dim_.w = 4;
27         metricsMarkers2();
28 }
29
30
31 void MathLefteqnInset::draw(MathPainterInfo & pi, int x, int y) const
32 {
33         cell(0).draw(pi, x + 2, y);
34         drawMarkers2(pi, x, y);
35 }
36
37
38 string MathLefteqnInset::name() const
39 {
40         return "lefteqn";
41 }
42
43
44 void MathLefteqnInset::infoize(std::ostream & os) const
45 {
46         os << "Lefteqn ";
47 }