4 #include "math_ertinset.h"
5 #include "math_mathmlstream.h"
6 #include "support/LOstream.h"
9 InsetBase * MathErtInset::clone() const
11 return new MathErtInset(*this);
15 void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
17 FontSetChanger dummy(mi.base, "lyxert");
18 MathTextInset::metrics(mi, dim_);
19 cache_.colinfo_[0].align_ = 'l';
25 void MathErtInset::draw(PainterInfo & pi, int x, int y) const
27 FontSetChanger dummy(pi.base, "lyxert");
28 MathTextInset::draw(pi, x + 1, y);
29 drawMarkers(pi, x, y);
33 void MathErtInset::write(WriteStream & os) const
38 os << "\\lyxert{" << cell(0) << '}';
42 void MathErtInset::infoize(std::ostream & os) const