]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetBibtex.h
index 59b61c5e82bfbf3526d29cffaf109f4efa30b6e8..4e2b98849f8f3be75eafaad111f28524008a2948 100644 (file)
 #ifndef INSET_BIBTEX_H
 #define INSET_BIBTEX_H
 
-
-#include <vector>
+#include <map>
 #include "InsetCommand.h"
+#include "BiblioInfo.h"
 
-#include "support/filename.h"
+#include "support/FileName.h"
 
 
 namespace lyx {
@@ -32,14 +32,14 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
+       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;
        ///
@@ -49,9 +49,9 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
 protected:
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 
 };