]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.h
lyx2lyx/lyx_1_6.py: fixes for r26882 as promised
[lyx.git] / src / DocIterator.h
index d994c3a1e7a20a50007e4eabddb91b0e007a5c74..5e157ef9072c05d79134608758d7c18141989d9e 100644 (file)
@@ -214,7 +214,7 @@ public:
        /// find index of CursorSlice with &cell() == &cell (or -1 if not found)
        int find(MathData const & cell) const;
        /// find index of CursorSlice with inset() == inset (or -1 of not found)
-       int find(InsetMath const * inset) const;
+       int find(Inset const * inset) const;
        /// cut off CursorSlices with index > above and store cut off slices in cut.
        void cutOff(int above, std::vector<CursorSlice> & cut);
        /// cut off CursorSlices with index > above
@@ -309,6 +309,13 @@ bool operator<=(DocIterator const & p, DocIterator const & q)
 }
 
 
+inline 
+bool operator>=(DocIterator const & p, DocIterator const & q)
+{
+       return !(p < q);
+}
+
+
 // The difference to a ('non stable') DocIterator is the removed
 // (overwritten by 0...) part of the CursorSlice data items. So this thing
 // is suitable for external storage, but not for iteration as such.