]> git.lyx.org Git - lyx.git/blob - src/mathed/math_kerninset.h
fix typo that put too many include paths for most people
[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 #include "math_nestinset.h"
9
10 #ifdef __GNUG__
11 #pragma interface
12 #endif
13
14 /// The \kern primitive
15 /// Some hack for visual effects
16
17 class MathKernInset : public MathDimInset {
18 public:
19         ///
20         MathKernInset();
21         ///
22         explicit MathKernInset(LyXLength const & wid);
23         ///
24         explicit MathKernInset(string const & wid);
25         ///
26         MathInset * clone() const;
27         ///
28         void draw(Painter &, int x, int y) const;
29         ///
30         void write(WriteStream & os) const;
31         ///
32         void normalize(NormalStream & ns) const;
33         ///
34         void metrics(MathMetricsInfo const & st) const;
35 private:
36         /// width in em
37         LyXLength wid_;
38 };
39 #endif