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