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"
22 MathNumberInset::MathNumberInset(string const & s)
27 auto_ptr<InsetBase> MathNumberInset::doClone() const
29 return auto_ptr<InsetBase>(new MathNumberInset(*this));
33 void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
35 mathed_string_dim(mi.base.font, str_, dim);
39 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
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