3 * \file math_numberinset.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 "math_inset.h"
18 /** Some inset that "is" a number
19 * mainly for math-extern
21 class MathNumberInset : public MathInset {
24 explicit MathNumberInset(std::string const & s);
26 virtual std::auto_ptr<InsetBase> clone() const;
28 void metrics(MetricsInfo & mi, Dimension & dim) const;
30 void draw(PainterInfo &, int x, int y) const;
32 std::string str() const { return str_; }
34 MathNumberInset * asNumberInset() { return this; }
37 void normalize(NormalStream &) const;
39 void octave(OctaveStream &) const;
41 void maple(MapleStream &) const;
43 void mathmlize(MathMLStream &) const;
45 void write(WriteStream & os) const;
48 /// the number as string