]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetBibtex.h
index aab27400f6bf12bd449c71e68ae1672b1fd5c579..e6c8748c9521df416bb950eb5c0af6b4a07c6717 100644 (file)
 #include "InsetCommand.h"
 #include "BiblioInfo.h"
 
-#include "support/FileName.h"
+namespace lyx {
 
+class EmbeddedFileList;
 
-namespace lyx {
 
 /** Used to insert BibTeX's information
   */
@@ -41,13 +41,25 @@ public:
        virtual void fillWithBibKeys(Buffer const &,
                BiblioInfo &, InsetIterator const &) const;
        ///
-       std::vector<support::FileName> const getFiles(Buffer const &) const;
+       EmbeddedFileList const getFiles(Buffer const &) const;
        ///
        bool addDatabase(std::string const &);
        ///
        bool delDatabase(std::string const &);
        ///
        void validate(LaTeXFeatures &) const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "bibtex"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "bibtex"; }
+       ///
+       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       ///
+       void updateEmbeddedFile(Buffer const & buf, EmbeddedFile const & file);
+       
 protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private: