3 * \file InsetMathXArrow.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_XARROWINSET_H
13 #define MATH_XARROWINSET_H
15 #include "InsetMathFrac.h"
21 /// Wide arrows like \xrightarrow
22 class InsetMathXArrow : public InsetMathFracBase {
25 explicit InsetMathXArrow(Buffer * buf, docstring const & name);
27 void draw(PainterInfo & pi, int x, int y) const override;
29 void write(TeXMathStream & os) const override;
31 void metrics(MetricsInfo & mi, Dimension & dim) const override;
33 void normalize(NormalStream & os) const override;
35 void mathmlize(MathMLStream &) const override;
37 void htmlize(HtmlStream &) const override;
39 void validate(LaTeXFeatures & features) const override;
41 InsetCode lyxCode() const override { return MATH_XARROW_CODE; }
43 MathClass mathClass() const override { return MC_REL; }
46 Inset * clone() const override;
50 docstring const name_;