]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xyarrowinset.h
Fix.
[lyx.git] / src / mathed / math_xyarrowinset.h
index 45cde7f49c64a10e7287b6cb3b6dc7536c3d9cfb..17861354dd78f81252ff559a19a518e880793ed3 100644 (file)
@@ -3,29 +3,49 @@
 #define MATH_ARROWINSET_H
 
 #include "math_nestinset.h"
+#include "math_metricsinfo.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
+// for the \ar stuff in \xymatrix
+
+class MathXYMatrixInset;
 
 class MathXYArrowInset : public MathNestInset {
-public: 
+public:
        ///
        MathXYArrowInset();
        ///
        MathInset * clone() const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void metrics(MathMetricsInfo & mi) const;
+       ///
+       void draw(MathPainterInfo & pi, int x, int y) const;
        ///
        MathXYArrowInset * asXYArrowInset() { return this; }
+
        ///
        void normalize();
-
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;
+
+public:
+       ///
+       MathXYMatrixInset const * targetMatrix() const;
+       ///
+       MathArray const & targetCell() const;
+       ///
+       MathArray const & sourceCell() const;
+
+       ///
+       bool up_;
+       ///
+       mutable MathMetricsInfo mi_;
+       ///
+       mutable LyXFont font_;
+       ///
+       mutable MathXYMatrixInset const * target_;
 };
 
 #endif