X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathXArrow.h;h=3e5c4846a95889e68149ed14b671f9bb99705469;hb=a11780b59fcb6cdd16b15f9fa4de45d7ddfd1b2a;hp=5f6c1124868f63fd58daa57ac7f42715a5e30a67;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=features.git diff --git a/src/mathed/InsetMathXArrow.h b/src/mathed/InsetMathXArrow.h index 5f6c112486..3e5c4846a9 100644 --- a/src/mathed/InsetMathXArrow.h +++ b/src/mathed/InsetMathXArrow.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -12,30 +12,44 @@ #ifndef MATH_XARROWINSET_H #define MATH_XARROWINSET_H -#include "InsetMathFracBase.h" +#include "InsetMathFrac.h" + + +namespace lyx { /// Wide arrows like \xrightarrow class InsetMathXArrow : public InsetMathFracBase { public: /// - explicit InsetMathXArrow(std::string const & name); + explicit InsetMathXArrow(Buffer * buf, docstring const & name); + /// + void draw(PainterInfo & pi, int x, int y) const override; + /// + void write(TeXMathStream & os) const override; /// - void draw(PainterInfo & pi, int x, int y) const; + void metrics(MetricsInfo & mi, Dimension & dim) const override; /// - void write(WriteStream & os) const; + void normalize(NormalStream & os) const override; /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + void mathmlize(MathMLStream &) const override; /// - void normalize(NormalStream & os) const; + void htmlize(HtmlStream &) const override; /// - void validate(LaTeXFeatures & features) const; + void validate(LaTeXFeatures & features) const override; + /// + InsetCode lyxCode() const override { return MATH_XARROW_CODE; } + /// + MathClass mathClass() const override { return MC_REL; } private: - virtual std::auto_ptr doClone() const; + Inset * clone() const override; /// bool upper() const; /// - std::string const name_; + docstring const name_; }; + + +} // namespace lyx #endif