2 * \file InsetMathNumber.cpp
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 "MathStream.h"
15 #include "MathStream.h"
16 #include "MathSupport.h"
23 InsetMathNumber::InsetMathNumber(docstring const & s)
28 Inset * InsetMathNumber::clone() const
30 return new InsetMathNumber(*this);
34 bool InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
36 mathed_string_dim(mi.base.font, str_, dim);
44 void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
50 void InsetMathNumber::normalize(NormalStream & os) const
52 os << "[number " << str_ << ']';
56 void InsetMathNumber::maple(MapleStream & os) const
62 void InsetMathNumber::mathematica(MathematicaStream & os) const
68 void InsetMathNumber::octave(OctaveStream & os) const
74 void InsetMathNumber::mathmlize(MathStream & os) const
76 os << "<mi> " << str_ << " </mi>";
80 void InsetMathNumber::write(WriteStream & os) const