]> git.lyx.org Git - lyx.git/blob - src/mathed/math_spaceinset.h
several smallish changes/bugfixes/left overs from Porto
[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         explicit MathSpaceInset(string const & name);
18         ///
19         MathInset * clone() const;
20         ///
21         MathSpaceInset const * asSpaceInset() const { return this; }
22         ///
23         MathSpaceInset * asSpaceInset() { return this; }
24         ///
25         void incSpace();
26         ///
27         void metrics(MathMetricsInfo & st) const;
28         ///
29         void draw(MathPainterInfo &, int x, int y) const;
30
31         ///
32         void normalize(NormalStream &) const;
33         ///
34         void maplize(MapleStream &) const;
35         ///
36         void octavize(OctaveStream &) const;
37         ///
38         void write(WriteStream & os) const;
39 private:
40         ///
41         int space_;
42 };
43 #endif