]> git.lyx.org Git - lyx.git/blob - src/mathed/math_kerninset.h
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_kerninset.h
1 // -*- C++ -*-
2 #ifndef MATH_CHEATINSET_H
3 #define MATH_CHEATINSET_H
4
5 #include "math_diminset.h"
6 #include "vspace.h"
7 #include "LString.h"
8
9 #ifdef __GNUG__
10 #pragma interface
11 #endif
12
13 /// The \kern primitive
14
15 class MathKernInset : public MathDimInset {
16 public:
17         ///
18         MathKernInset();
19         ///
20         explicit MathKernInset(LyXLength const & wid);
21         ///
22         explicit MathKernInset(string const & wid);
23         ///
24         MathInset * clone() const;
25         ///
26         void draw(Painter &, int x, int y) const;
27         ///
28         void write(WriteStream & os) const;
29         ///
30         void normalize(NormalStream &) const;
31         ///
32         void metrics(MathMetricsInfo const & st) const;
33 private:
34         /// width in em
35         LyXLength wid_;
36 };
37 #endif