]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
Don't add localswitch if no language changes
[lyx.git] / src / insets / InsetBibtex.h
index 3b8510152dae8c11d4f99e23a1172f76f06740bc..ec783d857bfc4e0edaf33aaa307f15594083f668 100644 (file)
 namespace lyx {
 
 class BiblioInfo;
+class docstring_list;
 
 namespace support {
        class FileName;
-       class FileNameList;
-}
+} // namespace support
 
 /** Used to insert BibTeX's information
   */
@@ -33,11 +33,13 @@ public:
        ~InsetBibtex();
 
        ///
-       support::FileNameList getBibFiles() const;
+       docstring_list getBibFiles() const;
        ///
        bool addDatabase(docstring const &);
        ///
        bool delDatabase(docstring const &);
+       ///
+       void write(std::ostream &) const;
 
        /// \name Public functions inherited from Inset class
        //@{
@@ -52,7 +54,10 @@ public:
        ///
        void latex(otexstream &, OutputParams const &) const;
        ///
-       void collectBibKeys(InsetIterator const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
+       ///
+       void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -73,13 +78,12 @@ public:
        //@}
 
 private:
-       /// look up the path to the file using TeX
-       static support::FileName
-               getBibTeXPath(docstring const & filename, Buffer const & buf);
        ///
        void editDatabases() const;
        ///
-       void parseBibTeXFiles() const;
+       void parseBibTeXFiles(support::FileNameList &) const;
+       ///
+       bool usingBiblatex() const;
 
        /// \name Private functions inherited from Inset class
        //@{