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"
17 #include "support/Length.h"
23 /// The \kern primitive
24 /// Some hack for visual effects
26 class InsetMathKern : public InsetMath {
31 explicit InsetMathKern(Length const & wid);
33 explicit InsetMathKern(docstring const & wid);
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;
43 void mathmlize(MathStream &) const { }
45 void htmlize(HtmlStream &) const { }
47 void infoize2(odocstream & os) const;
49 InsetCode lyxCode() const { return MATH_KERN_CODE; }
52 virtual Inset * clone() const;