]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.h
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_inset.h
index bf2f2ec3141c40db12300168a69a4a911f17eeda..8f607e319f984c971ab7d0445ee10530b85f5d35 100644 (file)
@@ -78,15 +78,17 @@ class MathPosFinder;
 class MathInset {
 public: 
        /// short of anything else reasonable
-       typedef MathArray::size_type     size_type;
+       typedef MathArray::size_type        size_type;
+       /// type for cursor positions differences within a cell
+       typedef MathArray::difference_type  difference_type;
        /// type for cursor positions within a cell
-       typedef MathArray::size_type     pos_type;
+       typedef MathArray::size_type        pos_type;
        /// type for cell indices
-       typedef size_type                idx_type;
+       typedef size_type                   idx_type;
        /// type for row numbers
-       typedef size_type                row_type;
+       typedef size_type                   row_type;
        /// type for column numbers
-       typedef size_type                col_type;
+       typedef size_type                   col_type;
 
        /// our members behave nicely...
        MathInset() {}
@@ -177,6 +179,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; }