]> git.lyx.org Git - lyx.git/blob - src/mathed/math_spaceinset.h
further code uglification to make Jean-Marc's compiler happy
[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         void draw(Painter &, int x, int y) const;
21         ///
22         void write(std::ostream &, bool fragile) const;
23         ///
24         void writeNormal(std::ostream &) const;
25         ///
26         void metrics(MathStyles st) const;
27         ///
28         bool isSpaceInset() const { return true; }
29         ///
30         void incSpace();
31 private:
32         ///
33         int space_;
34 };
35 #endif