]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinset.h
move things around
[lyx.git] / src / mathed / math_gridinset.h
index b3a7e9c522c567bdc7c0f099a0f3e71cfce47cbc..101d506fc3cf8618f4e37afa20ea31b01e75ee06 100644 (file)
@@ -3,6 +3,7 @@
 #define MATH_GRID_H
 
 #include "math_nestinset.h"
+#include "LString.h"
 
 #ifdef __GNUG__
 #pragma interface
@@ -52,7 +53,7 @@ class MathGridInset : public MathNestInset {
 
 public: 
        ///
-       MathGridInset(int m, int n, string const & nm);
+       MathGridInset(int m, int n);
        ///
        void write(std::ostream &, bool fragile) const;
        ///
@@ -86,6 +87,10 @@ public:
        int col(int idx) const { return idx % ncols(); }
        ///
        int row(int idx) const { return idx / ncols(); }
+       ///
+       int cellXOffset(int idx) const;
+       ///
+       int cellYOffset(int idx) const;
 
        ///
        bool idxUp(int &, int &) const;