-bool isParEnd(LyXText const & lt, RowList::iterator rit)
-{
- RowList::iterator next_row = boost::next(rit);
- return next_row == lt.rows().end() || next_row->par() != rit->par();
-}
-
-
-pos_type lastPos(LyXText const & lt, RowList::iterator rit)
-{
- if (rit->par()->empty())
- return 0;
-
- if (isParEnd(lt, rit))
- return rit->par()->size() - 1;
-
- return boost::next(rit)->pos() - 1;
-}
-
-
-namespace {
-
-bool nextRowIsAllInset(Row const & row, pos_type last)
-{
- ParagraphList::iterator pit = row.par();
-
- if (last + 1 >= pit->size())
- return false;
-
- if (!pit->isInset(last + 1))
- return false;
-
- InsetOld const * i = pit->getInset(last + 1);
- return i->needFullRow() || i->display();
-}
-
-} // anon namespace
-
-
-pos_type lastPrintablePos(LyXText const & lt, RowList::iterator rit)