7 #include "math_sizeinset.h"
8 #include "math_parser.h"
9 #include "math_mathmlstream.h"
10 #include "math_streamstr.h"
11 #include "math_support.h"
12 #include "support/LOstream.h"
15 MathSizeInset::MathSizeInset(latexkeys const * l)
16 : MathNestInset(1), key_(l)
20 MathInset * MathSizeInset::clone() const
22 return new MathSizeInset(*this);
26 void MathSizeInset::metrics(MathMetricsInfo & mi) const
28 //MathStyleChanger dummy(mi.base, MathStyles(key_->id));
29 dim_ = xcell(0).metrics(mi);
34 void MathSizeInset::draw(MathPainterInfo & pi, int x, int y) const
36 //MathStyleChanger dummy(pi.base, MathStyles(key_->id));
37 xcell(0).draw(pi, x + 1, y);
38 drawMarkers2(pi, x, y);
42 void MathSizeInset::write(WriteStream & os) const
44 os << "{\\" << key_->name << ' ' << cell(0) << '}';
48 void MathSizeInset::normalize(NormalStream & os) const
50 os << "[" << key_->name << ' ' << cell(0) << ']';
54 void MathSizeInset::infoize(std::ostream & os) const
56 os << "Size: " << key_->name;