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
16 class MathNumberInset : public MathDimInset {
19 explicit MathNumberInset(string const & s);
21 MathInset * clone() const;
23 void metrics(MathMetricsInfo & st) const;
25 void draw(MathPainterInfo &, int x, int y) const;
27 string str() const { return str_; }
29 MathNumberInset * asNumberInset() { return this; }
32 void normalize(NormalStream &) const;
34 void octavize(OctaveStream &) const;
36 void maplize(MapleStream &) const;
38 void mathmlize(MathMLStream &) const;
40 void write(WriteStream & os) const;
43 /// the number as string