]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_iterator.h
Fix reading of math macros
[lyx.git] / src / mathed / math_iterator.h
index 5d1e972a5eda19f07540ccee4a4f0fcc6d2c7683..53a9727f5da1495ef51f4578b8b8bca4add72312 100644 (file)
@@ -2,6 +2,10 @@
 #ifndef MATH_ITERATOR_H
 #define MATH_ITERATOR_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "math_pos.h"
 #include <vector>
 
@@ -18,6 +22,7 @@ public:
        using base_type::back;
        using base_type::begin;
        using base_type::end;
+       using base_type::erase;
        using base_type::operator[];
        using base_type::size_type;
        using base_type::difference_type;
@@ -45,6 +50,10 @@ public:
        void goEnd();
        /// read access to top most item
        MathArray const & cell() const;
+       /// is this a non-end position
+       bool normal() const;
+       /// shrinks to at most i levels
+       void shrink(size_type i);
 
 private:
        /// own level down