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(docstring
const & name
);
27 void draw(PainterInfo
& pi
, int x
, int y
) const;
29 void write(WriteStream
& os
) const;
31 void metrics(MetricsInfo
& mi
, Dimension
& dim
) const;
33 void normalize(NormalStream
& os
) const;
35 void validate(LaTeXFeatures
& features
) const;
37 InsetCode
lyxCode() const { return MATH_XARROW_CODE
; }
40 virtual Inset
* clone() const;
44 docstring
const name_
;