7 #include "math_numberinset.h"
8 #include "math_mathmlstream.h"
9 #include "math_streamstr.h"
10 #include "math_support.h"
14 MathNumberInset::MathNumberInset(string const & s)
19 MathInset * MathNumberInset::clone() const
21 return new MathNumberInset(*this);
25 void MathNumberInset::metrics(MathMetricsInfo & mi) const
27 mathed_string_dim(mi.base.font, str_, ascent_, descent_, width_);
31 void MathNumberInset::draw(MathPainterInfo & pi, int x, int y) const
33 //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
34 drawStr(pi, pi.base.font, x, y, str_);
38 void MathNumberInset::normalize(NormalStream & os) const
40 os << "[number " << str_ << "]";
44 void MathNumberInset::maplize(MapleStream & os) const
50 void MathNumberInset::octavize(OctaveStream & os) const
56 void MathNumberInset::mathmlize(MathMLStream & os) const
58 os << "<mi> " << str_ << " </mi>";
62 void MathNumberInset::write(WriteStream & os) const