2 #ifndef MATH_XYARROWINSET_H
3 #define MATH_ARROWINSET_H
5 #include "math_nestinset.h"
11 // for the \ar stuff in \xymatrix
13 class MathXYMatrixInset;
15 class MathXYArrowInset : public MathNestInset {
20 MathInset * clone() const;
22 void metrics(MathMetricsInfo const & st) const;
24 void draw(Painter & pain, int x, int y) const;
26 MathXYArrowInset * asXYArrowInset() { return this; }
31 void write(WriteStream & os) const;
33 void normalize(NormalStream &) const;
37 MathXYMatrixInset const * targetMatrix() const;
39 MathXArray const & targetCell() const;
41 MathXArray const & sourceCell() const;
46 mutable MathMetricsInfo mi_;
48 mutable LyXFont font_;
50 mutable MathXYMatrixInset const * target_;