]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / BufferParams.h
index 9236d5b3875adda18d8961adef9f3d33aa23f773..87c848cd71fa2f1eb0e73458517404973b19e1a6 100644 (file)
@@ -490,7 +490,7 @@ public:
        std::vector<CitationStyle> citeStyles() const;
 
        /// Return the actual bibtex command (lyxrc or buffer param)
-       std::string const bibtexCommand() const;
+       std::string const bibtexCommand(bool const warn = false) const;
 
        /// Are we using biblatex?
        bool useBiblatex() const;
@@ -553,6 +553,10 @@ public:
        bool setLanguage(std::string const & lang);
        ///
        void invalidateConverterCache() const;
+       /// Copies over some of the settings from \param bp,
+       /// namely the ones need by Advanced F&R. We don't want
+       /// to copy them all, e.g., not the default master.
+       void copyForAdvFR(BufferParams const & bp);
 
 private:
        ///
@@ -585,6 +589,9 @@ private:
        std::string biblio_style;
        /// Split bibliography?
        bool use_bibtopic;
+       /// Return the actual or an appropriate fallback bibtex command
+       std::string const getBibtexCommand(std::string const cmd,
+                                          bool const warn) const;
        ///
        DocumentClassPtr doc_class_;
        ///
@@ -616,7 +623,6 @@ private:
                static void destroy(Impl *);
        };
        support::copied_ptr<Impl, MemoryTraits> pimpl_;
-
 };
 
 } // namespace lyx