]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetBibtex.h
index a3ce2c6f288b7782c2577344672e09b551ce16e1..05fb37451e01d5cee422b4ce4dedf04710f17056 100644 (file)
 #include "InsetCommand.h"
 #include "BiblioInfo.h"
 
-#include "support/FileName.h"
+namespace lyx {
 
+class EmbeddedFileList;
 
-namespace lyx {
 
 /** Used to insert BibTeX's information
   */
@@ -32,7 +32,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
+       InsetCode lyxCode() const { return BIBTEX_CODE; }
        ///
        DisplayType display() const { return AlignCenter; }
        ///
@@ -41,17 +41,31 @@ 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 ParamInfo 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:
-       virtual std::auto_ptr<Inset> doClone() const;
+       ///
+       virtual Inset * clone() const;
 
 };