]> git.lyx.org Git - lyx.git/blob - src/mathed/math_spaceinset.h
fix typo that put too many include paths for most people
[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 #include "math_defs.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /// Smart spaces
13 class MathSpaceInset : public MathDimInset {
14 public:
15         ///
16         explicit MathSpaceInset(int sp);
17         ///
18         MathInset * clone() const;
19         ///
20         MathSpaceInset const * asSpaceInset() const { return this; }
21         ///
22         MathSpaceInset * asSpaceInset() { return this; }
23         ///
24         void incSpace();
25         ///
26         void metrics(MathMetricsInfo const & st) const;
27         ///
28         void draw(Painter &, int x, int y) const;
29
30         ///
31         void normalize(NormalStream &) const;
32         ///
33         void maplize(MapleStream &) const;
34         ///
35         void octavize(OctaveStream &) const;
36         ///
37         void write(WriteStream & os) const;
38 private:
39         ///
40         int space_;
41 };
42 #endif