]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathKern.h
6bafa80ca7eb6e74d315e22e0dbe3b4674446cd0
[lyx.git] / src / mathed / InsetMathKern.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathKern.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 "InsetMath.h"
16 #include "Length.h"
17
18
19 namespace lyx {
20
21
22 /// The \kern primitive
23 /// Some hack for visual effects
24
25 class InsetMathKern : public InsetMath {
26 public:
27         ///
28         InsetMathKern();
29         ///
30         explicit InsetMathKern(Length const & wid);
31         ///
32         explicit InsetMathKern(docstring const & wid);
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         virtual Inset * clone() const;
43         /// width in em
44         Length wid_;
45 };
46
47
48 } // namespace lyx
49 #endif