5 #include "math_lefteqninset.h"
6 #include "support/LOstream.h"
9 #include "math_cursor.h"
12 MathLefteqnInset::MathLefteqnInset()
17 MathInset * MathLefteqnInset::clone() const
19 return new MathLefteqnInset(*this);
23 void MathLefteqnInset::draw(Painter & pain, int x, int y) const
25 xcell(0).draw(pain, x + 2, y);
26 if (mathcursor && mathcursor->isInside(this)) {
27 pain.rectangle(x, y - ascent(), xcell(0).width(), height(),
33 void MathLefteqnInset::write(MathWriteInfo & os) const
35 os << "\\lefteqn{" << cell(0) << "}";
39 void MathLefteqnInset::writeNormal(std::ostream & os) const
48 void MathLefteqnInset::metrics(MathMetricsInfo const & mi) const
50 MathNestInset::metrics(mi);
51 ascent_ = xcell(0).ascent() + 2;
52 descent_ = xcell(0).descent() + 2;