4 #include "math_numberinset.h"
5 #include "math_mathmlstream.h"
6 #include "math_streamstr.h"
7 #include "math_support.h"
11 MathNumberInset::MathNumberInset(string const & s)
16 MathInset * MathNumberInset::clone() const
18 return new MathNumberInset(*this);
22 void MathNumberInset::metrics(MetricsInfo & mi) const
24 mathed_string_dim(mi.base.font, str_, dim_);
28 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
30 //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
31 drawStr(pi, pi.base.font, x, y, str_);
35 void MathNumberInset::normalize(NormalStream & os) const
37 os << "[number " << str_ << ']';
41 void MathNumberInset::maple(MapleStream & os) const
47 void MathNumberInset::octave(OctaveStream & os) const
53 void MathNumberInset::mathmlize(MathMLStream & os) const
55 os << "<mi> " << str_ << " </mi>";
59 void MathNumberInset::write(WriteStream & os) const