3 #include "math_ertinset.h"
4 #include "math_mathmlstream.h"
5 #include "support/LOstream.h"
10 auto_ptr<InsetBase> MathErtInset::clone() const
12 return auto_ptr<InsetBase>(new MathErtInset(*this));
16 void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
18 FontSetChanger dummy(mi.base, "lyxert");
19 MathTextInset::metrics(mi, dim_);
20 cache_.colinfo_[0].align_ = 'l';
26 void MathErtInset::draw(PainterInfo & pi, int x, int y) const
28 FontSetChanger dummy(pi.base, "lyxert");
29 MathTextInset::draw(pi, x + 1, y);
30 drawMarkers(pi, x, y);
34 void MathErtInset::write(WriteStream & os) const
39 os << "\\lyxert{" << cell(0) << '}';
43 void MathErtInset::infoize(std::ostream & os) const