3 * \file InsetMathCancel.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_CANCELINSET_H
13 #define MATH_CANCELINSET_H
15 #include "InsetMathNest.h"
20 class InsetMathCancel : public InsetMathNest {
29 explicit InsetMathCancel(Buffer * buf, Kind);
31 void metrics(MetricsInfo & mi, Dimension & dim) const override;
33 void draw(PainterInfo & pi, int x, int y) const override;
35 void write(TeXMathStream & os) const override;
36 /// write normalized content
37 void normalize(NormalStream & ns) const override;
39 void infoize(odocstream & os) const override;
41 InsetCode lyxCode() const override { return MATH_CANCEL_CODE; }
43 void mathmlize(MathMLStream &) const override;
45 void htmlize(HtmlStream &) const override;
47 void validate(LaTeXFeatures &) const override;
51 Inset * clone() const override;