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