mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Fix toc generation after rev25096.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25097 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c99463ebfc
commit
3803473627
@ -279,6 +279,8 @@ void InsetBranch::addToToc(DocIterator const & cpit)
|
||||
Toc & toc = buffer().tocBackend().toc("branch");
|
||||
docstring const str = params_.branch + ": " + text_.getPar(0).asString();
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetCollapsable::addToToc(cpit);
|
||||
}
|
||||
|
||||
|
||||
|
@ -113,6 +113,9 @@ void InsetCaption::addToToc(DocIterator const & cpit)
|
||||
Toc & toc = buffer().tocBackend().toc(type_);
|
||||
docstring const str = full_label_ + ". " + text_.getPar(0).asString();
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
|
||||
// Proceed with the rest of the inset.
|
||||
InsetText::addToToc(cpit);
|
||||
}
|
||||
|
||||
|
||||
|
@ -73,6 +73,8 @@ void InsetFoot::addToToc(DocIterator const & cpit)
|
||||
docstring str;
|
||||
str = custom_label_ + ": " + getNewLabel(str);
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetFootlike::addToToc(cpit);
|
||||
}
|
||||
|
||||
|
||||
|
@ -102,6 +102,8 @@ void InsetIndex::addToToc(DocIterator const & cpit)
|
||||
docstring str;
|
||||
str = getNewLabel(str);
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetCollapsable::addToToc(cpit);
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,6 +75,8 @@ void InsetMarginal::addToToc(DocIterator const & cpit)
|
||||
docstring str;
|
||||
str = getNewLabel(str);
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetFootlike::addToToc(cpit);
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -231,6 +231,8 @@ void InsetNote::addToToc(DocIterator const & cpit)
|
||||
str = notetranslator_loc().find(params_.type) + from_ascii(": ")
|
||||
+ getNewLabel(str);
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetCollapsable::addToToc(cpit);
|
||||
}
|
||||
|
||||
|
||||
|
@ -426,11 +426,6 @@ ParagraphList & InsetText::paragraphs()
|
||||
}
|
||||
|
||||
|
||||
//void InsetInclude::addToToc(DocIterator const & cpit)
|
||||
//{
|
||||
//}
|
||||
|
||||
|
||||
void InsetText::updateLabels(ParIterator const & it)
|
||||
{
|
||||
ParIterator it2 = it;
|
||||
|
Loading…
Reference in New Issue
Block a user