Make BiblioInfo::collectCitedEntries private (since it can be),

and fix a comment referring to it.
This commit is contained in:
Richard Heck 2014-08-22 11:17:36 -04:00
parent d1bfad86e5
commit 6490cdafbe
2 changed files with 6 additions and 5 deletions

View File

@ -217,8 +217,6 @@ public:
std::vector<CitationStyle> 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<docstring> field_names_;
///

View File

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