X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursorSlice.h;h=a9326f1cce1b2d00bc6ad0918a4ff021b3dd7e02;hb=cadae068974fb25e97c5b2c38774a73ee23e92fc;hp=89fd6f5219163504284d038c80ed2818acf466b0;hpb=d075cb25b89b7bd2ac3d293c9db7c825d58770dd;p=lyx.git diff --git a/src/CursorSlice.h b/src/CursorSlice.h index 89fd6f5219..a9326f1cce 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -20,9 +20,6 @@ #include "support/types.h" #include "insets/Inset.h" -#include -#include - #include #include @@ -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