}
-void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
+void outline(OutlineOp mode, Buffer * buf, pit_type & pit)
{
ParagraphList & pars = buf->text().paragraphs();
ParagraphList::iterator bgn = pars.begin();
++p;
for (; p != end; ++p) {
toclevel = p->layout()->toclevel;
- if (toclevel != LyXLayout::NOT_IN_TOC
+ if (toclevel != LyXLayout::NOT_IN_TOC
&& toclevel <= thistoclevel) {
- break;
+ break;
}
}
ParagraphList::iterator q = s;
break;
for (; q != bgn; --q) {
toclevel = q->layout()->toclevel;
- if (toclevel != LyXLayout::NOT_IN_TOC
+ if (toclevel != LyXLayout::NOT_IN_TOC
&& toclevel <= thistoclevel) {
- break;
+ break;
}
}
pit_type const newpit = std::distance(pars.begin(), q);
break;
}
case DOWN: {
- if (p != end)
+ if (p != end)
++p;
for (; p != end; ++p) {
toclevel = p->layout()->toclevel;
- if (toclevel != LyXLayout::NOT_IN_TOC
+ if (toclevel != LyXLayout::NOT_IN_TOC
&& toclevel <= thistoclevel) {
- break;
+ break;
}
}
ParagraphList::iterator q = p;
break;
for (; q != end; ++q) {
toclevel = q->layout()->toclevel;
- if (toclevel != LyXLayout::NOT_IN_TOC
+ if (toclevel != LyXLayout::NOT_IN_TOC
&& toclevel <= thistoclevel) {
- break;
+ break;
}
}
pit_type const newpit = std::distance(pars.begin(), q);