2002-02-05 13:27:34 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_XARROWINSET_H
|
|
|
|
|
#define MATH_XARROWINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** Wide arrows like \xrightarrow
|
|
|
|
|
\author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathXArrowInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit MathXArrowInset(string const & name);
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
2002-02-05 13:27:34 +00:00
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void metrics(MathMetricsInfo & st) const;
|
2002-02-05 13:27:34 +00:00
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream & os) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
bool upper() const;
|
|
|
|
|
///
|
|
|
|
|
string const name_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|