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"
24 InsetMathNumber::InsetMathNumber(string const & s)
29 auto_ptr<InsetBase> InsetMathNumber::doClone() const
31 return auto_ptr<InsetBase>(new InsetMathNumber(*this));
35 void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
37 mathed_string_dim(mi.base.font, str_, dim);
41 void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
43 docstring const dstr(str_.begin(), str_.end());
48 void InsetMathNumber::normalize(NormalStream & os) const
50 os << "[number " << str_ << ']';
54 void InsetMathNumber::maple(MapleStream & os) const
60 void InsetMathNumber::mathematica(MathematicaStream & os) const
66 void InsetMathNumber::octave(OctaveStream & os) const
72 void InsetMathNumber::mathmlize(MathMLStream & os) const
74 os << "<mi> " << str_ << " </mi>";
78 void InsetMathNumber::write(WriteStream & os) const