]> git.lyx.org Git - features.git/commitdiff
Make BiblioInfo::collectCitedEntries private (since it can be),
authorRichard Heck <rgheck@lyx.org>
Fri, 22 Aug 2014 15:17:36 +0000 (11:17 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 22 Aug 2014 15:18:10 +0000 (11:18 -0400)
and fix a comment referring to it.

src/BiblioInfo.h
src/insets/InsetCitation.cpp

index 31c2b54b0f0824c7f8b8c713e9849e8c127d2acd..be7bf09b6c311a5289bc1ee505db19a6ee1ac886 100644 (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_;
        ///
index b7aac592c4d9428a293a2936b3a13de0d33ade0c..8f697993b143c94d43d011c2a6fbd50bdf5bfa80 100644 (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));