]> git.lyx.org Git - lyx.git/blob - src/mathed/math_numberinset.h
small up/down tweaking
[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  * Full author contact details are available in file CREDITS
16  */
17
18 class MathNumberInset : public MathDimInset {
19 public:
20         ///
21         explicit MathNumberInset(string const & s);
22         ///
23         MathInset * clone() const;
24         ///
25         void metrics(MathMetricsInfo & st) const;
26         ///
27         void draw(MathPainterInfo &, int x, int y) const;
28         ///
29         string str() const { return str_; }
30         ///
31         MathNumberInset * asNumberInset() { return this; }
32
33         ///
34         void normalize(NormalStream &) const;
35         ///
36         void octavize(OctaveStream &) const;
37         ///
38         void maplize(MapleStream &) const;
39         ///
40         void mathmlize(MathMLStream &) const;
41         ///
42         void write(WriteStream & os) const;
43
44 private:
45         /// the number as string
46         string str_;
47 };
48 #endif