2 * \file math_numberinset.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_numberinset.h"
14 #include "math_mathmlstream.h"
15 #include "math_streamstr.h"
16 #include "math_support.h"
23 MathNumberInset::MathNumberInset(string const & s)
28 auto_ptr<InsetBase> MathNumberInset::doClone() const
30 return auto_ptr<InsetBase>(new MathNumberInset(*this));
34 void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
36 mathed_string_dim(mi.base.font, str_, dim);
40 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
42 //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
43 drawStr(pi, pi.base.font, x, y, str_);
47 void MathNumberInset::normalize(NormalStream & os) const
49 os << "[number " << str_ << ']';
53 void MathNumberInset::maple(MapleStream & os) const
59 void MathNumberInset::octave(OctaveStream & os) const
65 void MathNumberInset::mathmlize(MathMLStream & os) const
67 os << "<mi> " << str_ << " </mi>";
71 void MathNumberInset::write(WriteStream & os) const