]> git.lyx.org Git - lyx.git/blob - src/mathed/math_spaceinset.h
fonts as insets
[lyx.git] / src / mathed / math_spaceinset.h
1 // -*- C++ -*-
2 #ifndef MATH_SPACEINSET_H
3 #define MATH_SPACEINSET_H
4
5 #include "math_diminset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /// Smart spaces
12 class MathSpaceInset : public MathDimInset {
13 public:
14         ///
15         explicit MathSpaceInset(int sp);
16         ///
17         MathInset * clone() const;
18         ///
19         MathSpaceInset const * asSpaceInset() const { return this; }
20         ///
21         MathSpaceInset * asSpaceInset() { return this; }
22         ///
23         void incSpace();
24         ///
25         void metrics(MathMetricsInfo & st) const;
26         ///
27         void draw(MathPainterInfo &, int x, int y) const;
28
29         ///
30         void normalize(NormalStream &) const;
31         ///
32         void maplize(MapleStream &) const;
33         ///
34         void octavize(OctaveStream &) const;
35         ///
36         void write(WriteStream & os) const;
37 private:
38         ///
39         int space_;
40 };
41 #endif