X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursorSlice.h;h=98d054dc4e23ea17c50e97202216212ed37e09d8;hb=e08e5afeea7194d95be1f02fe9484383574d203f;hp=a9326f1cce1b2d00bc6ad0918a4ff021b3dd7e02;hpb=d5f8004189e31579f4dc2ef9c38549a08671f5c4;p=lyx.git diff --git a/src/CursorSlice.h b/src/CursorSlice.h index a9326f1cce..98d054dc4e 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -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.