2 * \file InsetMathNumber.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 "InsetMathNumber.h"
14 #include "MathMLStream.h"
15 #include "MathStream.h"
16 #include "MathSupport.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
38 mathed_string_dim(mi.base.font, lyx::from_utf8(str_), dim);
42 void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
45 pi.draw(x, y, lyx::from_utf8(str_));
49 void InsetMathNumber::normalize(NormalStream & os) const
51 os << "[number " << str_ << ']';
55 void InsetMathNumber::maple(MapleStream & os) const
61 void InsetMathNumber::mathematica(MathematicaStream & os) const
67 void InsetMathNumber::octave(OctaveStream & os) const
73 void InsetMathNumber::mathmlize(MathMLStream & os) const
75 os << "<mi> " << str_ << " </mi>";
79 void InsetMathNumber::write(WriteStream & os) const