]> git.lyx.org Git - lyx.git/blobdiff - src/cursor_slice.C
more cursor dispatch
[lyx.git] / src / cursor_slice.C
index 464f1517fb8122c8a54162e7e3d16892e64d97e7..cbbda47d1a276cf24d277ac417d6244b81ccced6 100644 (file)
@@ -131,6 +131,12 @@ bool CursorSlice::boundary() const
 }
 
 
+bool & CursorSlice::boundary()
+{
+       return boundary_;
+}
+
+
 CursorSlice::row_type CursorSlice::row() const
 {
        BOOST_ASSERT(asMathInset());
@@ -164,16 +170,9 @@ MathArray & CursorSlice::cell() const
 }
 
 
-void CursorSlice::getScreenPos(int & x, int & y) const
-{
-       BOOST_ASSERT(asMathInset());
-       asMathInset()->getScreenPos(idx_, pos_, x, y);
-}
-
-
 LyXText * CursorSlice::text() const
 {
-       return asUpdatableInset() ? asUpdatableInset()->getText(idx_) : 0;
+       return inset_ ? inset_->getText(idx_) : 0;
 }
 
 
@@ -235,7 +234,7 @@ bool operator>(CursorSlice const & p, CursorSlice const & q)
 std::ostream & operator<<(std::ostream & os, CursorSlice const & item)
 {
        os << "inset: " << item.inset_
-//        << " text: " << item.text()
+          << " text: " << item.text()
           << " idx: " << item.idx_
           << " par: " << item.par_
           << " pos: " << item.pos_