3 * \file InsetMathNumber.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_NUMBERINSET_H
13 #define MATH_NUMBERINSET_H
15 #include "InsetMath.h"
17 #include "support/docstring.h"
22 /** Some inset that "is" a number mainly for math-extern
24 class InsetMathNumber : public InsetMath {
27 explicit InsetMathNumber(docstring const & s);
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo &, int x, int y) const;
33 docstring str() const { return str_; }
35 InsetMathNumber * asNumberInset() { return this; }
38 void normalize(NormalStream &) const;
40 void octave(OctaveStream &) const;
42 void maple(MapleStream &) const;
44 void mathematica(MathematicaStream &) const;
46 void mathmlize(MathStream &) const;
48 void write(WriteStream & os) const;
51 virtual Inset * clone() const;
52 /// the number as string