3 * \file InsetMathKern.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 "InsetMath.h"
22 /// The \kern primitive
23 /// Some hack for visual effects
25 class InsetMathKern
: public InsetMath
{
30 explicit InsetMathKern(Length
const & wid
);
32 explicit InsetMathKern(docstring
const & wid
);
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;
42 InsetCode
lyxCode() const { return MATH_KERN_CODE
; }
45 virtual Inset
* clone() const;