- 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)
-{
- pos_type const last = lastPos(lt, rit);
-
- // if this row is an end of par, just act like lastPos()
- if (isParEnd(lt, rit))
- return last;
-
- bool const nextrownotinset = !nextRowIsAllInset(*rit, last);
-
- if (nextrownotinset && rit->par()->isSeparator(last))
- return last - 1;
-
- return last;
-}
-
-
-int numberOfSeparators(LyXText const & lt, RowList::iterator rit)
-{
- pos_type const last = lastPrintablePos(lt, rit);
- ParagraphList::iterator pit = rit->par();
-
- int n = 0;
-
- pos_type p = max(rit->pos(), pit->beginningOfBody());
- for (; p < last; ++p) {
- if (pit->isSeparator(p)) {
- ++n;
- }
- }
- return n;