2 #ifndef MATH_NUMBERINSET_H
3 #define MATH_NUMBERINSET_H
5 #include "math_inset.h"
8 /** Some inset that "is" a number
9 * maily for math-extern
10 * \author André Pönitz
12 * Full author contact details are available in file CREDITS
15 class MathNumberInset : public MathInset {
18 explicit MathNumberInset(string const & s);
20 MathInset * clone() const;
22 Dimension metrics(MetricsInfo & mi) const;
24 void draw(PainterInfo &, int x, int y) const;
26 string str() const { return str_; }
28 MathNumberInset * asNumberInset() { return this; }
31 void normalize(NormalStream &) const;
33 void octave(OctaveStream &) const;
35 void maple(MapleStream &) const;
37 void mathmlize(MathMLStream &) const;
39 void write(WriteStream & os) const;
42 /// the number as string