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"
21 MathNumberInset::MathNumberInset(string const & s)
26 auto_ptr<InsetBase> MathNumberInset::clone() const
28 return auto_ptr<InsetBase>(new MathNumberInset(*this));
32 void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
34 mathed_string_dim(mi.base.font, str_, dim);
38 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
40 //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
41 drawStr(pi, pi.base.font, x, y, str_);
45 void MathNumberInset::normalize(NormalStream & os) const
47 os << "[number " << str_ << ']';
51 void MathNumberInset::maple(MapleStream & os) const
57 void MathNumberInset::octave(OctaveStream & os) const
63 void MathNumberInset::mathmlize(MathMLStream & os) const
65 os << "<mi> " << str_ << " </mi>";
69 void MathNumberInset::write(WriteStream & os) const