]> git.lyx.org Git - features.git/blob - src/mathed/math_spaceinset.h
4d20d2707d53bb20cb0d759ad9e4b8eeab32ebc1
[features.git] / src / mathed / math_spaceinset.h
1 // -*- C++ -*-
2 #ifndef MATH_SPACEINSET_H
3 #define MATH_SPACEINSET_H
4
5 #include "math_inset.h"
6 #include "math_defs.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /// Smart spaces
13 class MathSpaceInset : public MathInset {
14 public:
15         ///
16         MathSpaceInset(int sp, short ot = LM_OT_SPACE);
17         ///
18         MathInset *  Clone() const;
19         ///
20         void draw(Painter &, int, int);
21         ///
22         void Write(std::ostream &, bool fragile) const;
23         ///
24         void WriteNormal(std::ostream &) const;
25         ///
26         void Metrics(MathStyles st);
27         ///
28         void SetSpace(int sp);
29         ///
30         int GetSpace();
31 private:
32         ///
33         int space_;
34 };
35 #endif