lyx_mirror/src/mathed/InsetMathXArrow.h

48 lines
890 B
C
Raw Normal View History

// -*- C++ -*-
/**
* \file InsetMathXArrow.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Andr<EFBFBD> P<EFBFBD>nitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_XARROWINSET_H
#define MATH_XARROWINSET_H
#include "InsetMathFracBase.h"
namespace lyx {
/// Wide arrows like \xrightarrow
class InsetMathXArrow : public InsetMathFracBase {
public:
///
explicit InsetMathXArrow(docstring const & name);
///
void draw(PainterInfo & pi, int x, int y) const;
///
void write(WriteStream & os) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void normalize(NormalStream & os) const;
///
void validate(LaTeXFeatures & features) const;
private:
virtual Inset * clone() const;
///
bool upper() const;
///
docstring const name_;
};
} // namespace lyx
#endif