]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Prevent accidental usage of wrong copy constructor
[lyx.git] / src / CursorSlice.h
index 19a6e1f581f69a55deac74e540aed0bb979535c8..d703cb4b3479ac3198c26ea3ed2df0dfaeb82f32 100644 (file)
@@ -38,11 +38,11 @@ class Paragraph;
 
 class CursorSlice {
 public:
-       /// Those needs inset_ access.
-       ///@{
+       /// \name Those needs inset_ access.
+       //@{
        friend class DocIterator;
        friend class StableDocIterator;
-       ///@}
+       //@}
 
        /// type for cell number in inset
        typedef size_t idx_type;
@@ -56,7 +56,7 @@ public:
        ///
        explicit CursorSlice(Inset &);
 
-       /// comparison operators.
+       /// \name Comparison operators.
        //@{
        friend bool operator==(CursorSlice const &, CursorSlice const &);
        friend bool operator!=(CursorSlice const &, CursorSlice const &);
@@ -132,6 +132,10 @@ public:
        void forwardIdx();
        /// move to previous cell
        void backwardIdx();
+       /// are we at the end of the cell
+       bool at_cell_end() const;
+       /// are we at the start of the cell
+       bool at_cell_begin() const;
        /// are we at the end of this slice
        bool at_end() const;
        /// are we at the start of this slice