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