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"
18 #include "math_nestinset.h"
21 /// The \kern primitive
22 /// Some hack for visual effects
24 class MathKernInset : public MathInset {
29 explicit MathKernInset(LyXLength const & wid);
31 explicit MathKernInset(string const & wid);
33 virtual std::auto_ptr<InsetBase> clone() const;
35 void metrics(MetricsInfo & mi, Dimension & dim) const;
37 void draw(PainterInfo & pi, int x, int y) const;
39 void write(WriteStream & os) const;
41 void normalize(NormalStream & ns) const;