5 ParIterator & ParIterator::operator++()
7 while (!positions.empty()) {
8 ParPosition & p = positions.back();
10 // Does the current inset contain more "cells" ?
13 Paragraph * par = (*p.it)->getFirstParagraph(p.index);
15 positions.push_back(ParPosition(par));
21 // Try to find the next inset that contains paragraphs
22 for ( ; p.it != p.par->inset_iterator_end(); ++p.it) {
23 Paragraph * par = (*p.it)->getFirstParagraph(0);
26 positions.push_back(ParPosition(par));
30 // Try to go to the next paragarph
32 p = ParPosition(p.par->next());