]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.h
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_inset.h
index 9e1bbde71fa73788346b73980fbadd1a6665949d..5b8d6de1da09769f6b1a0172d68af1f0c5809f43 100644 (file)
@@ -167,6 +167,8 @@ public:
        virtual col_type col(idx_type) const { return 0; }
        /// to which row belongs a cell with a given index?
        virtual row_type row(idx_type) const { return 0; }
+       /// cell idex corresponding to row and column;
+       virtual idx_type index(row_type row, col_type col) const;
        /// any additional x-offset when drawing a cell?
        virtual int cellXOffset(idx_type) const { return 0; }
        /// any additional y-offset when drawing a cell?
@@ -175,6 +177,7 @@ public:
        /// identifies certain types of insets
        virtual MathArrayInset        * asArrayInset()        { return 0; }
        virtual MathBoxInset          * asBoxInset()          { return 0; }
+       virtual MathBoxInset const    * asBoxInset() const    { return 0; }
        virtual MathCharInset const   * asCharInset() const   { return 0; }
        virtual MathDelimInset        * asDelimInset()        { return 0; }
        virtual MathDelimInset const  * asDelimInset() const  { return 0; }