2 #ifndef MATH_XYARROWINSET_H
3 #define MATH_ARROWINSET_H
5 #include "math_nestinset.h"
6 #include "math_metricsinfo.h"
12 // for the \ar stuff in \xymatrix
14 class MathXYMatrixInset;
16 class MathXYArrowInset : public MathNestInset {
21 MathInset * clone() const;
23 void metrics(MathMetricsInfo & mi) const;
25 void draw(MathPainterInfo & pi, int x, int y) const;
27 MathXYArrowInset * asXYArrowInset() { return this; }
32 void write(WriteStream & os) const;
34 void normalize(NormalStream &) const;
38 MathXYMatrixInset const * targetMatrix() const;
40 MathArray const & targetCell() const;
42 MathArray const & sourceCell() const;
47 mutable MathMetricsInfo mi_;
49 mutable LyXFont font_;
51 mutable MathXYMatrixInset const * target_;