4 #include "math_numberinset.h"
5 #include "math_mathmlstream.h"
6 #include "math_streamstr.h"
7 #include "math_support.h"
13 MathNumberInset::MathNumberInset(string const & s)
18 auto_ptr<InsetBase> MathNumberInset::clone() const
20 return auto_ptr<InsetBase>(new MathNumberInset(*this));
24 void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
26 mathed_string_dim(mi.base.font, str_, dim);
30 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
32 //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
33 drawStr(pi, pi.base.font, x, y, str_);
37 void MathNumberInset::normalize(NormalStream & os) const
39 os << "[number " << str_ << ']';
43 void MathNumberInset::maple(MapleStream & os) const
49 void MathNumberInset::octave(OctaveStream & os) const
55 void MathNumberInset::mathmlize(MathMLStream & os) const
57 os << "<mi> " << str_ << " </mi>";
61 void MathNumberInset::write(WriteStream & os) const