]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetBibtex.h
index b9c97f08c60678a85603200e86de8d2c0538a866..4e2b98849f8f3be75eafaad111f28524008a2948 100644 (file)
@@ -12,9 +12,9 @@
 #ifndef INSET_BIBTEX_H
 #define INSET_BIBTEX_H
 
-
-#include <vector>
+#include <map>
 #include "InsetCommand.h"
+#include "BiblioInfo.h"
 
 #include "support/FileName.h"
 
@@ -34,12 +34,12 @@ public:
        ///
        Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
        ///
-       bool display() const { return true; }
+       DisplayType display() const { return AlignCenter; }
        ///
        int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
-       void fillWithBibKeys(Buffer const & buffer,
-               std::vector<std::pair<std::string, docstring> > & keys) const;
+       virtual void fillWithBibKeys(Buffer const &,
+               BiblioInfo &, InsetIterator const &) const;
        ///
        std::vector<support::FileName> const getFiles(Buffer const &) const;
        ///
@@ -51,7 +51,7 @@ public:
 protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
 };