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.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_CHEATINSET_H
13 #define MATH_CHEATINSET_H
15 #include "math_inset.h"
16 #include "lyxlength.h"
17 #include "support/std_string.h"
20 /// The \kern primitive
21 /// Some hack for visual effects
23 class MathKernInset : public MathInset {
28 explicit MathKernInset(LyXLength const & wid);
30 explicit MathKernInset(string const & wid);
32 virtual std::auto_ptr<InsetBase> clone() const;
34 void metrics(MetricsInfo & mi, Dimension & dim) const;
36 void draw(PainterInfo & pi, int x, int y) const;
38 void write(WriteStream & os) const;
40 void normalize(NormalStream & ns) const;