]> git.lyx.org Git - lyx.git/blob - src/mathed/math_kerninset.h
IU of drawing phase one without 'semantic changes' as requested by John
[lyx.git] / src / mathed / math_kerninset.h
1 // -*- C++ -*-
2 #ifndef MATH_CHEATINSET_H
3 #define MATH_CHEATINSET_H
4
5 #include "math_inset.h"
6 #include "vspace.h"
7 #include "LString.h"
8 #include "math_nestinset.h"
9
10
11 /// The \kern primitive
12 /// Some hack for visual effects
13
14 class MathKernInset : public MathInset {
15 public:
16         ///
17         MathKernInset();
18         ///
19         explicit MathKernInset(LyXLength const & wid);
20         ///
21         explicit MathKernInset(string const & wid);
22         ///
23         MathInset * clone() const;
24         ///
25         void metrics(MetricsInfo & mi, Dimension & dim) const;
26         ///
27         void draw(PainterInfo & pi, int x, int y) const;
28         ///
29         void write(WriteStream & os) const;
30         ///
31         void normalize(NormalStream & ns) const;
32 private:
33         /// width in em
34         LyXLength wid_;
35 };
36 #endif