2 * \file math_ertinset.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "math_ertinset.h"
14 #include "math_mathmlstream.h"
15 #include "support/std_ostream.h"
20 auto_ptr<InsetBase> MathErtInset::clone() const
22 return auto_ptr<InsetBase>(new MathErtInset(*this));
26 void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
28 FontSetChanger dummy(mi.base, "lyxert");
29 MathTextInset::metrics(mi, dim);
30 cache_.colinfo_[0].align_ = 'l';
36 void MathErtInset::draw(PainterInfo & pi, int x, int y) const
38 FontSetChanger dummy(pi.base, "lyxert");
39 MathTextInset::draw(pi, x + 1, y);
40 drawMarkers(pi, x, y);
44 void MathErtInset::write(WriteStream & os) const
49 os << "\\lyxert{" << cell(0) << '}';
53 void MathErtInset::infoize(std::ostream & os) const