4 #include "math_boxinset.h"
5 #include "math_support.h"
6 #include "math_mathmlstream.h"
7 #include "math_streamstr.h"
8 #include "support/LOstream.h"
11 MathBoxInset::MathBoxInset(string const & name)
12 : MathNestInset(1), name_(name)
16 MathInset * MathBoxInset::clone() const
18 return new MathBoxInset(*this);
22 void MathBoxInset::write(WriteStream & os) const
24 os << '\\' << name_ << '{' << cell(0) << '}';
28 void MathBoxInset::normalize(NormalStream & os) const
30 os << '[' << name_ << ' ';
31 //text_->write(buffer(), os);
36 void MathBoxInset::metrics(MathMetricsInfo & mi) const
38 MathFontSetChanger dummy(mi.base, "textnormal");
45 void MathBoxInset::draw(MathPainterInfo & pi, int x, int y) const
47 MathFontSetChanger dummy(pi.base, "textnormal");
48 cell(0).draw(pi, x, y);
49 drawMarkers2(pi, x + 1, y);
53 void MathBoxInset::infoize(std::ostream & os) const
55 os << "Box: " << name_;