]> git.lyx.org Git - lyx.git/blob - src/mathed/math_numberinset.h
*duck*
[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 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Some inset that "is" a number
12  *  maily for math-extern
13  *  \author André Pönitz
14  */
15
16 class MathNumberInset : public MathDimInset {
17 public:
18         ///
19         explicit MathNumberInset(string const & s);
20         ///
21         MathInset * clone() const;
22         ///
23         void metrics(MathMetricsInfo & st) const;
24         ///
25         void draw(MathPainterInfo &, int x, int y) const;
26         ///
27         string str() const { return str_; }
28         ///
29         MathNumberInset * asNumberInset() { return this; }
30
31         ///
32         void normalize(NormalStream &) const;
33         ///
34         void octavize(OctaveStream &) const;
35         ///
36         void maplize(MapleStream &) const;
37         ///
38         void mathmlize(MathMLStream &) const;
39         ///
40         void write(WriteStream & os) const;
41
42 private:
43         /// the number as string
44         string str_;
45 };
46 #endif