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 void metrics(MetricsInfo & mi, Dimension & dim) const;
28 void draw(PainterInfo &, int x, int y) const;
30 std::string str() const { return str_; }
32 MathNumberInset * asNumberInset() { return this; }
35 void normalize(NormalStream &) const;
37 void octave(OctaveStream &) const;
39 void maple(MapleStream &) const;
41 void mathmlize(MathMLStream &) const;
43 void write(WriteStream & os) const;
46 virtual std::auto_ptr<InsetBase> doClone() const;
47 /// the number as string