3 * \file math_xyarrowinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_XYARROWINSET_H
13 #define MATH_ARROWINSET_H
15 #include "math_nestinset.h"
16 #include "metricsinfo.h"
19 // for the \ar stuff in \xymatrix
21 class MathXYMatrixInset;
23 class MathXYArrowInset : public MathNestInset {
28 virtual std::auto_ptr<InsetBase> clone() const;
30 void metrics(MetricsInfo & mi) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 MathXYArrowInset * asXYArrowInset() { return this; }
39 void write(WriteStream & os) const;
41 void normalize(NormalStream &) const;
45 MathXYMatrixInset const * targetMatrix() const;
47 MathArray const & targetCell() const;
49 MathArray const & sourceCell() const;
54 mutable MetricsInfo mi_;
56 mutable LyXFont font_;
58 mutable MathXYMatrixInset const * target_;