2 #ifndef MATH_XYARROWINSET_H
3 #define MATH_ARROWINSET_H
5 #include "math_nestinset.h"
6 #include "metricsinfo.h"
9 // for the \ar stuff in \xymatrix
11 class MathXYMatrixInset;
13 class MathXYArrowInset : public MathNestInset {
18 MathInset * clone() const;
20 void metrics(MetricsInfo & mi) const;
22 void draw(PainterInfo & pi, int x, int y) const;
24 MathXYArrowInset * asXYArrowInset() { return this; }
29 void write(WriteStream & os) const;
31 void normalize(NormalStream &) const;
35 MathXYMatrixInset const * targetMatrix() const;
37 MathArray const & targetCell() const;
39 MathArray const & sourceCell() const;
44 mutable MetricsInfo mi_;
46 mutable LyXFont font_;
48 mutable MathXYMatrixInset const * target_;