]> git.lyx.org Git - lyx.git/blob - src/mathed/math_kerninset.h
small header tweaks
[lyx.git] / src / mathed / math_kerninset.h
1 // -*- C++ -*-
2 /**
3  * \file math_kerninset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_CHEATINSET_H
13 #define MATH_CHEATINSET_H
14
15 #include "math_inset.h"
16 #include "lyxlength.h"
17 #include "support/std_string.h"
18
19
20 /// The \kern primitive
21 /// Some hack for visual effects
22
23 class MathKernInset : public MathInset {
24 public:
25         ///
26         MathKernInset();
27         ///
28         explicit MathKernInset(LyXLength const & wid);
29         ///
30         explicit MathKernInset(string const & wid);
31         ///
32         virtual std::auto_ptr<InsetBase> clone() const;
33         ///
34         void metrics(MetricsInfo & mi, Dimension & dim) const;
35         ///
36         void draw(PainterInfo & pi, int x, int y) const;
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void normalize(NormalStream & ns) const;
41 private:
42         /// width in em
43         LyXLength wid_;
44 };
45 #endif