mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
do not show Index contents in ToC (note that Inset::textString is only for this use)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0fcec4cbad
commit
4804b60f1c
@ -165,19 +165,12 @@ void InsetIndex::write(ostream & os) const
|
||||
}
|
||||
|
||||
|
||||
void InsetIndex::textString(odocstream & os) const
|
||||
{
|
||||
os << text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
|
||||
}
|
||||
|
||||
|
||||
void InsetIndex::addToToc(DocIterator const & cpit)
|
||||
{
|
||||
DocIterator pit = cpit;
|
||||
pit.push_back(CursorSlice(*this));
|
||||
odocstringstream ods;
|
||||
textString(ods);
|
||||
buffer().tocBackend().toc("index").push_back(TocItem(pit, 0, ods.str()));
|
||||
docstring const item = text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
|
||||
buffer().tocBackend().toc("index").push_back(TocItem(pit, 0, item));
|
||||
// Proceed with the rest of the inset.
|
||||
InsetCollapsable::addToToc(cpit);
|
||||
}
|
||||
|
@ -45,8 +45,6 @@ private:
|
||||
/// should the user be allowed to customize alignment, etc.?
|
||||
virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
||||
///
|
||||
void textString(odocstream &) const;
|
||||
///
|
||||
void addToToc(DocIterator const &);
|
||||
///
|
||||
Inset * clone() const { return new InsetIndex(*this); }
|
||||
|
Loading…
Reference in New Issue
Block a user