]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetBibitem.h
index e4978141115220049abf42edc02e87f7ba4cd718..b0b1121a36bb7df593dbc3db01d8694f6aa34f48 100644 (file)
@@ -14,7 +14,7 @@
 
 
 #include "InsetCommand.h"
-#include "Biblio.h"
+#include "BiblioInfo.h"
 
 
 namespace lyx {
@@ -35,7 +35,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; }
+       InsetCode lyxCode() const { return BIBITEM_CODE; }
        ///
        docstring const getBibLabel() const;
        ///
@@ -45,12 +45,18 @@ public:
                BiblioInfo &, InsetIterator const &) const;
        /// Update the counter of this inset
        virtual void updateLabels(Buffer const &, ParIterator const &);
-
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "bibitem"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "bibitem"; }
 protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        /// The label that is set by updateLabels
        docstring autolabel_;