2 #ifndef MATH_NUMBERINSET_H
3 #define MATH_NUMBERINSET_H
5 #include "math_diminset.h"
11 /** Some inset that "is" a number
12 * maily for math-extern
13 * \author André Pönitz
15 * Full author contact details are available in file CREDITS
18 class MathNumberInset : public MathDimInset {
21 explicit MathNumberInset(string const & s);
23 MathInset * clone() const;
25 void metrics(MathMetricsInfo & st) const;
27 void draw(MathPainterInfo &, int x, int y) const;
29 string str() const { return str_; }
31 MathNumberInset * asNumberInset() { return this; }
34 void normalize(NormalStream &) const;
36 void octavize(OctaveStream &) const;
38 void maplize(MapleStream &) const;
40 void mathmlize(MathMLStream &) const;
42 void write(WriteStream & os) const;
45 /// the number as string