3 #include "support/LOstream.h"
9 #include "math_scriptinset.h"
12 MathScriptInset::MathScriptInset(bool up)
13 : MathNestInset(1), up_(up)
17 MathInset * MathScriptInset::clone() const
19 return new MathScriptInset(*this);
23 void MathScriptInset::write(std::ostream & os, bool fragile) const
25 cell(0).write(os, fragile);
29 void MathScriptInset::metrics(MathStyles st) const
33 width_ = xcell(0).width();
34 ascent_ = xcell(0).ascent();
35 descent_ = xcell(0).descent();
39 void MathScriptInset::draw(Painter & pain, int x, int y) const
43 xcell(0).draw(pain, x, y);