]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathNumber.h
more latin1..utf8 schanges. all of src/* should be utf8 now
[lyx.git] / src / mathed / InsetMathNumber.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathNumber.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_NUMBERINSET_H
13 #define MATH_NUMBERINSET_H
14
15 #include "InsetMath.h"
16
17 #include "support/docstring.h"
18
19
20 namespace lyx {
21
22 /** Some inset that "is" a number mainly for math-extern
23  */
24 class InsetMathNumber : public InsetMath {
25 public:
26         ///
27         explicit InsetMathNumber(docstring const & s);
28         ///
29         void metrics(MetricsInfo & mi, Dimension & dim) const;
30         ///
31         void draw(PainterInfo &, int x, int y) const;
32         ///
33         docstring str() const { return str_; }
34         ///
35         InsetMathNumber * asNumberInset() { return this; }
36
37         ///
38         void normalize(NormalStream &) const;
39         ///
40         void octave(OctaveStream &) const;
41         ///
42         void maple(MapleStream &) const;
43         ///
44         void mathematica(MathematicaStream &) const;
45         ///
46         void mathmlize(MathStream &) const;
47         ///
48         void write(WriteStream & os) const;
49
50 private:
51         virtual Inset * clone() const;
52         /// the number as string
53         docstring str_;
54 };
55
56
57 } // namespace lyx
58
59 #endif