* 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.
*/
#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;
///
///
void normalize(NormalStream & os) const;
///
+ void mathmlize(MathStream &) const;
+ ///
void validate(LaTeXFeatures & features) const;
+ ///
+ InsetCode lyxCode() const { return MATH_XARROW_CODE; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
///
bool upper() const;
///
- std::string const name_;
+ docstring const name_;
};
+
+
+} // namespace lyx
#endif