-bool isParEnd(LyXText const & lt,
- ParagraphList::iterator pit, RowList::iterator rit)
-{
- RowList::iterator next_row = boost::next(rit);
- return next_row == lt.rows().end() || lt.getPar(next_row) != pit;
-}
-
-
-pos_type lastPos(LyXText const & lt,
- ParagraphList::iterator pit, RowList::iterator rit)
-{
- if (pit->empty())
- return 0;
-
- if (isParEnd(lt, pit, rit))
- return pit->size() - 1;
-
- return boost::next(rit)->pos() - 1;
-}
-
-
-namespace {
-
-bool nextRowIsAllInset(
- ParagraphList::iterator pit, RowList::iterator rit, pos_type last)
-{
- 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,
- ParagraphList::iterator pit, RowList::iterator rit)