diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h index 31c2b54b0f..be7bf09b6c 100644 --- a/src/BiblioInfo.h +++ b/src/BiblioInfo.h @@ -217,8 +217,6 @@ public: std::vector const & styles, Buffer const & buf, docstring const & before, docstring const & after, docstring const & dialog, size_t max_size) const; - /// Collects the cited entries from buf. - void collectCitedEntries(Buffer const & buf); /// A list of BibTeX keys cited in the current document, sorted by /// the last name of the author. /// Make sure you have called collectCitedEntries() before you try to @@ -246,6 +244,8 @@ public: /// void addEntryType(docstring const & f) { entry_types_.insert(f); } private: + /// Collects the cited entries from buf. + void collectCitedEntries(Buffer const & buf); /// std::set field_names_; /// diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index b7aac592c4..8f697993b1 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -334,9 +334,10 @@ void InsetCitation::updateBuffer(ParIterator const &, UpdateType) void InsetCitation::addToToc(DocIterator const & cpit, bool output_active) const { // NOTE - // XHTML output uses the TOC to collect the citations - // from the document. So if this gets changed, then we - // will need to change how the citations are collected. + // BiblioInfo::collectCitedEntries() uses the TOC to collect the citations + // from the document. It is used indirectly, via BiblioInfo::makeCitationLables, + // by both XHTML and plaintext output. So, if we change what goes into the TOC, + // then we will also need to change that routine. docstring const tocitem = getParam("key"); Toc & toc = buffer().tocBackend().toc("citation"); toc.push_back(TocItem(cpit, 0, tocitem, output_active));