]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xyarrowinset.h
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_xyarrowinset.h
index 70a907ab9830041829bac27ae83d8087e90b5b58..fe69939be4dc1875e382f2bfc14fe9cd492c1878 100644 (file)
@@ -1,27 +1,35 @@
 // -*- C++ -*-
+/**
+ * \file math_xyarrowinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_XYARROWINSET_H
 #define MATH_ARROWINSET_H
 
 #include "math_nestinset.h"
+#include "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;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void metrics(MetricsInfo & mi) const;
        ///
-       void draw(Painter & pain, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        MathXYArrowInset * asXYArrowInset() { return this; }
 
@@ -36,14 +44,18 @@ public:
        ///
        MathXYMatrixInset const * targetMatrix() const;
        ///
-       MathXArray const & targetCell() const;
+       MathArray const & targetCell() const;
        ///
-       MathXArray const & sourceCell() const;
+       MathArray const & sourceCell() const;
 
        ///
        bool up_;
        ///
-       mutable MathMetricsInfo mi_;
+       mutable MetricsInfo mi_;
+       ///
+       mutable LyXFont font_;
+       ///
+       mutable MathXYMatrixInset const * target_;
 };
 
 #endif