]> 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 a9326f1cce1b2d00bc6ad0918a4ff021b3dd7e02..98d054dc4e23ea17c50e97202216212ed37e09d8 100644 (file)
@@ -70,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();
@@ -121,6 +121,15 @@ 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:
 
        /// pointer to 'owning' inset. This is some kind of cache.