]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.h
This patch revert part of the code changed in revision 18825. This is needed because...
[lyx.git] / src / DocIterator.h
index 5d6c8442356f157eabbcb360a908712c2fcbc870..dfef036ae7a01303110d5e433d41db9ff7d97f92 100644 (file)
@@ -213,6 +213,9 @@ public:
        operator<<(std::ostream & os, DocIterator const & cur);
        ///
        friend bool operator==(DocIterator const &, DocIterator const &);
+       friend bool operator<(DocIterator const &, DocIterator const &);
+       friend bool operator>(DocIterator const &, DocIterator const &);
+       friend bool operator<=(DocIterator const &, DocIterator const &);
        ///
        friend class StableDocIterator;
 //protected:
@@ -224,6 +227,9 @@ public:
        void pop_back() { slices_.pop_back(); }
        /// recompute the inset parts of the cursor from the document data
        void updateInsets(Inset * inset);
+       /// fix DocIterator in circumstances that should never happen.
+       /// \return true if the DocIterator was fixed.
+       bool fixIfBroken();
 
 private:
        /**