5 #include "math_lefteqninset.h"
6 #include "math_mathmlstream.h"
7 #include "math_support.h"
10 MathLefteqnInset::MathLefteqnInset()
15 MathInset * MathLefteqnInset::clone() const
17 return new MathLefteqnInset(*this);
21 void MathLefteqnInset::metrics(MathMetricsInfo & mi) const
24 dim_.a = xcell(0).ascent() + 2;
25 dim_.d = xcell(0).descent() + 2;
30 void MathLefteqnInset::draw(MathPainterInfo & pain, int x, int y) const
32 xcell(0).draw(pain, x + 2, y);
33 //mathed_draw_framebox(pain, x, y, this);
37 void MathLefteqnInset::write(WriteStream & os) const
39 os << "\\lefteqn{" << cell(0) << '}';
43 void MathLefteqnInset::normalize(NormalStream & os) const
45 os << "[lefteqn " << cell(0) << ']';