]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Patch by Richard Heck:
[lyx.git] / src / CursorSlice.h
index 0b198e8fa5e6d6ee649a26281f7e1b952d9e6724..a9326f1cce1b2d00bc6ad0918a4ff021b3dd7e02 100644 (file)
@@ -40,6 +40,12 @@ class Paragraph;
 
 class CursorSlice {
 public:
+       /// Those needs inset_ access.
+       ///@{
+       friend class DocIterator;
+       friend class StableDocIterator;
+       ///@}
+
        /// type for cell number in inset
        typedef size_t idx_type;
        /// type for row indices
@@ -64,6 +70,8 @@ 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
+       pit_type lastpit() const;
        /// increments the paragraph this cursor is in
        void incrementPar();
        /// decrements the paragraph this cursor is in
@@ -113,10 +121,11 @@ public:
 
        /// write some debug information to \p os
        friend std::ostream & operator<<(std::ostream &, CursorSlice const &);
-public:
+private:
+
        /// pointer to 'owning' inset. This is some kind of cache.
        Inset * inset_;
-private:
+
        /*!
         * Cell index of a position in this inset.
         * This is the primary cell information also for grid like insets,