]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Patch by Richard Heck:
[lyx.git] / src / CursorSlice.h
index 89fd6f5219163504284d038c80ed2818acf466b0..a9326f1cce1b2d00bc6ad0918a4ff021b3dd7e02 100644 (file)
@@ -20,9 +20,6 @@
 #include "support/types.h"
 #include "insets/Inset.h"
 
-#include <boost/signal.hpp>
-#include <boost/signals/trackable.hpp>
-
 #include <cstddef>
 #include <iosfwd>
 
@@ -41,7 +38,7 @@ class Paragraph;
 // that of MathData and Text should vanish. They are conceptually the
 // same (now...)
 
-class CursorSlice : public boost::signals::trackable {
+class CursorSlice {
 public:
        /// Those needs inset_ access.
        ///@{
@@ -59,15 +56,7 @@ public:
        ///
        CursorSlice();
        ///
-       CursorSlice(CursorSlice const &);
-       ///
        explicit CursorSlice(Inset &);
-       ///
-       virtual ~CursorSlice();
-       ///
-       CursorSlice & operator=(CursorSlice const &);
-       ///
-       bool isValid() const;
 
        /// the current inset
        Inset & inset() const { return *inset_; }
@@ -81,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
@@ -131,8 +122,6 @@ public:
        /// write some debug information to \p os
        friend std::ostream & operator<<(std::ostream &, CursorSlice const &);
 private:
-       ///
-       void invalidate();
 
        /// pointer to 'owning' inset. This is some kind of cache.
        Inset * inset_;
@@ -158,8 +147,6 @@ private:
        bool pit_valid_;
        /// position in this cell
        pos_type pos_;
-       /// connection to referred \c inset_ destruction signal.
-       boost::signals::connection inset_connection_;
 };
 
 /// test for equality