]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBibtex.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[features.git] / src / insets / InsetBibtex.h
index 5c825f8773b5ef0def491f733521989960f699f2..64cab78beac8b478bc4aec91cf3dc6e0a9edf4e6 100644 (file)
 #ifndef INSET_BIBTEX_H
 #define INSET_BIBTEX_H
 
-#include <map>
-#include "InsetCommand.h"
 #include "BiblioInfo.h"
+#include "InsetCommand.h"
 
-namespace lyx {
+#include "support/FileNameList.h"
 
-class EmbeddedFileList;
+#include <map>
 
+namespace lyx {
 
 /** Used to insert BibTeX's information
   */
@@ -40,11 +40,11 @@ public:
        ///
        void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
        ///
-       EmbeddedFileList embeddedFiles() const;
+       support::FileNameList getBibFiles() const;
        ///
-       bool addDatabase(std::string const &);
+       bool addDatabase(docstring const &);
        ///
-       bool delDatabase(std::string const &);
+       bool delDatabase(docstring const &);
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -54,16 +54,14 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s) 
                { return s == "bibtex"; }
-       ///
-       void registerEmbeddedFiles(EmbeddedFileList &) const;
-       ///
-       void updateEmbeddedFile(EmbeddedFile const & file);
-protected:
+       /// look up the path to the file using TeX
+       static support::FileName 
+               getBibTeXPath(docstring const & filename, Buffer const & buf);
+private:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
        ///
-       Inset * clone() const;
+       Inset * clone() const { return new InsetBibtex(*this); }
 };