]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.h
Improve the list of equations
[lyx.git] / src / DocIterator.h
index 74dd47438ff85609ba5b8917bcadcd20c3a44c17..3f718697ad35cd761c618766f547823bc97212c2 100644 (file)
@@ -64,9 +64,7 @@ public:
        void resize(size_t i) { slices_.resize(i); }
 
        /// is the iterator valid?
-       operator const void*() const { return empty() ? 0 : this; }
-       /// is this iterator invalid?
-       bool operator!() const { return empty(); }
+       explicit operator bool() const { return !empty(); }
 
        /// does this iterator have any content?
        bool empty() const { return slices_.empty(); }
@@ -167,6 +165,8 @@ public:
        Paragraph & innerParagraph() const;
        /// return the inner text slice.
        CursorSlice const & innerTextSlice() const;
+       /// returns a DocIterator for the containing text inset
+       DocIterator getInnerText() const;
        /// the first and last positions of a word at top cursor slice
        /// \warning only works within text!
        FontSpan locateWord(word_location const loc) const;