]> git.lyx.org Git - lyx.git/blob - src/mathed/math_numberinset.h
fix #1073
[lyx.git] / src / mathed / math_numberinset.h
1 // -*- C++ -*-
2 #ifndef MATH_NUMBERINSET_H
3 #define MATH_NUMBERINSET_H
4
5 #include "math_diminset.h"
6
7
8 /** Some inset that "is" a number
9  *  maily for math-extern
10  *  \author André Pönitz
11  *
12  * Full author contact details are available in file CREDITS
13  */
14
15 class MathNumberInset : public MathDimInset {
16 public:
17         ///
18         explicit MathNumberInset(string const & s);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MetricsInfo & st) const;
23         ///
24         void draw(PainterInfo &, int x, int y) const;
25         ///
26         string str() const { return str_; }
27         ///
28         MathNumberInset * asNumberInset() { return this; }
29
30         ///
31         void normalize(NormalStream &) const;
32         ///
33         void octave(OctaveStream &) const;
34         ///
35         void maple(MapleStream &) const;
36         ///
37         void mathmlize(MathMLStream &) const;
38         ///
39         void write(WriteStream & os) const;
40
41 private:
42         /// the number as string
43         string str_;
44 };
45 #endif