Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathXArrow.h
blobd21dd422224422e14ab9e78c7126ed32a05b7afe
1 // -*- C++ -*-
2 /**
3 * \file InsetMathXArrow.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_XARROWINSET_H
13 #define MATH_XARROWINSET_H
15 #include "InsetMathFrac.h"
18 namespace lyx {
21 /// Wide arrows like \xrightarrow
22 class InsetMathXArrow : public InsetMathFracBase {
23 public:
24 ///
25 explicit InsetMathXArrow(docstring const & name);
26 ///
27 void draw(PainterInfo & pi, int x, int y) const;
28 ///
29 void write(WriteStream & os) const;
30 ///
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 ///
33 void normalize(NormalStream & os) const;
34 ///
35 void validate(LaTeXFeatures & features) const;
36 ///
37 InsetCode lyxCode() const { return MATH_XARROW_CODE; }
39 private:
40 virtual Inset * clone() const;
41 ///
42 bool upper() const;
43 ///
44 docstring const name_;
48 } // namespace lyx
49 #endif