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:
Jean-Marc Lasgouttes 2008-11-07 13:06:20 +00:00
parent 0fcec4cbad
commit 4804b60f1c
2 changed files with 2 additions and 11 deletions

View File

@ -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);
}

View File

@ -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); }