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 override;
37 void draw(PainterInfo & pi, int x, int y) const override;
39 void write(TeXMathStream & os) const override;
41 void normalize(NormalStream & ns) const override;
43 void mathmlize(MathMLStream &) const override { }
45 void htmlize(HtmlStream &) const override { }
47 void infoize2(odocstream & os) const override;
49 InsetCode lyxCode() const override { return MATH_KERN_CODE; }
52 Inset * clone() const override;