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 override;
31 void draw(PainterInfo &, int x, int y) const override;
33 docstring str() const { return str_; }
35 InsetMathNumber * asNumberInset() { return this; }
38 void normalize(NormalStream &) const override;
40 void octave(OctaveStream &) const override;
42 void maple(MapleStream &) const override;
44 void mathematica(MathematicaStream &) const override;
46 void mathmlize(MathMLStream &) const override;
48 void htmlize(HtmlStream &) const override;
50 void write(TeXMathStream & os) const override;
52 InsetCode lyxCode() const override { return MATH_NUMBER_CODE; }
55 Inset * clone() const override;
56 /// the number as string