- BOOST_ASSERT(asMathInset());
- return asMathInset()->col(idx_);
-}
-
-
-MathInset * CursorSlice::asMathInset() const
-{
- return inset_ ? inset_->asMathInset() : 0;
-}
-
-
-UpdatableInset * CursorSlice::asUpdatableInset() const
-{
- return inset_ ? inset_->asUpdatableInset() : 0;
-}
-
-
-MathArray & CursorSlice::cell() const
-{
- BOOST_ASSERT(asMathInset());
- return asMathInset()->cell(idx_);
-}
-
-
-LyXText * CursorSlice::text() const
-{
- return inset_ ? inset_->getText(idx_) : 0;
-}
-
-
-Paragraph & CursorSlice::paragraph()
-{
- // access to the main lyx text must be handled in the cursor
- BOOST_ASSERT(text());
- return *text()->getPar(par_);
-}
-
-
-Paragraph const & CursorSlice::paragraph() const
-{
- // access to the main lyx text must be handled in the cursor
- BOOST_ASSERT(text());
- return *text()->getPar(par_);