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(std::ostream & os, bool fragile) const
36 cell(0).write(os, fragile);
41 void MathLefteqnInset::writeNormal(std::ostream & os) const
44 cell(0).write(os, false);
49 void MathLefteqnInset::metrics(MathStyles st) const
51 MathNestInset::metrics(st);
53 ascent_ = xcell(0).ascent() + 2;
54 descent_ = xcell(0).descent() + 2;