]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_gridinset.h
Replace LString.h with support/std_string.h,
[features.git] / src / mathed / math_gridinset.h
index 1a94eb36a1d48a07c36962a6c1ae8d3e04d48fa9..f331000b174673c743f8f7574dd5d5afb1d81c31 100644 (file)
@@ -1,20 +1,25 @@
 // -*- C++ -*-
+/**
+ * \file math_gridinset.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_GRID_H
 #define MATH_GRID_H
 
 #include "math_nestinset.h"
 #include "vspace.h"
-#include "LString.h"
+#include "support/std_string.h"
 
 
 /** Gridded math inset base class.
-    This is the base to all grid-like editable math objects
-    like array and eqnarray.
- *  \author André Pönitz 2001
- *
- * Full author contact details are available in file CREDITS
-*/
-
+ *  This is the base to all grid-like editable math objects
+ */
 class MathGridInset : public MathNestInset {
 
 public:
@@ -90,13 +95,15 @@ public:
        /// Ensures that the dialog is closed.
        ~MathGridInset();
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
+       ///
+       void metrics(MetricsInfo & mi) const;
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension &) const;
        ///
-       void draw(MathPainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void metricsT(TextMetricsInfo const & mi) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///