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 Dimension MathNumberInset::metrics(MetricsInfo & mi) const
25 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