]> git.lyx.org Git - lyx.git/blob - src/mathed/math_lefteqninset.C
fix 'vanishing \sin' bug
[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
8
9 MathLefteqnInset::MathLefteqnInset()
10         : MathNestInset(1)
11 {}
12
13
14 MathInset * MathLefteqnInset::clone() const
15 {
16         return new MathLefteqnInset(*this);
17 }
18
19
20 void MathLefteqnInset::metrics(MathMetricsInfo & mi) const
21 {
22         cell(0).metrics(mi);
23         dim_.a = cell(0).ascent() + 2;
24         dim_.d = cell(0).descent() + 2;
25         dim_.w = 4;
26 }
27
28
29 void MathLefteqnInset::draw(MathPainterInfo & pain, int x, int y) const
30 {
31         cell(0).draw(pain, x + 2, y);
32         //mathed_draw_framebox(pain, x, y, this);
33 }
34
35
36 string MathLefteqnInset::name() const
37 {
38         return "lefteqn";
39 }