]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinset.h
some support for det and abs for math-extern
[lyx.git] / src / mathed / math_gridinset.h
index 347441ee853831c5b17a15fa2e9fa90483c35c9f..af3f69e68db6d8081411b9b2e86cbff86a8579c5 100644 (file)
@@ -62,9 +62,13 @@ public:
        /// Note: columns first!
        MathGridInset(col_type m, row_type n);
        ///
-       void write(std::ostream &, bool fragile) const;
+       MathGridInset(int m, int n, char valign, string const & halign);
        ///
-       void metrics(MathStyles st) const;
+       void write(MathWriteInfo & os) const;
+       ///
+       void writeNormal(std::ostream &) const;
+       ///
+       void metrics(MathMetricsInfo const & st) const;
        ///
        void draw(Painter &, int x, int y) const;
        ///
@@ -87,8 +91,8 @@ public:
        const RowInfo & rowinfo(row_type row) const;
        ///
        RowInfo & rowinfo(row_type row);
-       ///
-       bool isGrid() const { return true; }
+       /// identifies GridInset
+       virtual MathGridInset * asGridInset() { return this; }
 
        ///
        col_type ncols() const { return colinfo_.size(); }
@@ -116,6 +120,10 @@ public:
        ///
        bool idxLast(idx_type &, pos_type &) const;
        ///
+       bool idxHome(idx_type &, pos_type &) const;
+       ///
+       bool idxEnd(idx_type &, pos_type &) const;
+       ///
        void idxDelete(idx_type &, bool &, bool &);
        ///
        void idxDeleteRange(idx_type, idx_type);
@@ -141,6 +149,11 @@ public:
        ///
        void setDefaults();
 
+       ///
+       string octavize() const;
+       ///
+       string maplize() const;
+
 protected:
        /// returns proper 'end of line' code for LaTeX
        string eolString(row_type row) const;