#include "insets/insetfloat.h"
#include "insets/insetwrap.h"
#include "debug.h"
+#include "iterators.h"
using std::vector;
using std::max;
TocList toclist;
if (!buf)
return toclist;
- Paragraph * par = &*(buf->paragraphs.begin());
LyXTextClass const & textclass = buf->params.getLyXTextClass();
- while (par) {
+ ParConstIterator pit = buf->par_iterator_begin();
+ ParConstIterator end = buf->par_iterator_end();
+ for (; pit != end; ++pit) {
+ Paragraph const * par = *pit;
+
#ifdef WITH_WARNINGS
#warning bogus type (Lgb)
#endif
il->addToToc(toclist, buf);
}
}
-
- par = par->next();
}
return toclist;
}