]> git.lyx.org Git - lyx.git/blob - src/mathed/math_lefteqninset.C
oh well
[lyx.git] / src / mathed / math_lefteqninset.C
1 #ifdef __GNUG__
2 #pragma implementation
3 #endif
4
5 #include "math_lefteqninset.h"
6 #include "math_mathmlstream.h"
7 #include "math_support.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 const & mi) const
22 {
23         MathNestInset::metrics(mi);
24         ascent_  = xcell(0).ascent() + 2;
25         descent_ = xcell(0).descent() + 2;
26         width_   = 4;
27 }
28
29
30 void MathLefteqnInset::draw(Painter & pain, int x, int y) const
31 {
32         xcell(0).draw(pain, x + 2, y);
33         //mathed_draw_framebox(pain, x, y, this);
34 }
35
36
37 void MathLefteqnInset::write(WriteStream & os) const
38 {
39         os << "\\lefteqn{" << cell(0) << '}';
40 }
41
42
43 void MathLefteqnInset::normalize(NormalStream & os) const
44 {
45         os << "[lefteqn " << cell(0) << ']';
46 }