]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
simplify setInsetFont, removing a potential bug (an invalid DocIterator was built...
[lyx.git] / src / CursorSlice.h
index bcada34e19228d835d21cbbd09b060c4d9f8d8a2..98d054dc4e23ea17c50e97202216212ed37e09d8 100644 (file)
@@ -57,8 +57,6 @@ public:
        CursorSlice();
        ///
        explicit CursorSlice(Inset &);
-       ///
-       bool isValid() const;
 
        /// the current inset
        Inset & inset() const { return *inset_; }
@@ -72,7 +70,7 @@ public:
        pit_type pit() const { return pit_; }
        /// set the offset of the paragraph this cursor is in
        pit_type & pit() { return pit_; }
-       /// return the last paragraph offset this cursor is in
+       /// return the last paragraph offset within the ParagraphList
        pit_type lastpit() const;
        /// increments the paragraph this cursor is in
        void incrementPar();
@@ -123,9 +121,16 @@ public:
 
        /// write some debug information to \p os
        friend std::ostream & operator<<(std::ostream &, CursorSlice const &);
+       /// move to next position
+       void forwardPos();
+       /// move to previous position
+       void backwardPos();
+       /// are we at the end of this slice
+       bool at_end() const;
+       /// are we at the start of this slice
+       bool at_begin() const;
+       
 private:
-       ///
-       void invalidate();
 
        /// pointer to 'owning' inset. This is some kind of cache.
        Inset * inset_;