#include "InsetCommand.h"
-#include "Biblio.h"
+#include "BiblioInfo.h"
namespace lyx {
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; }
+ InsetCode lyxCode() const { return BIBITEM_CODE; }
///
docstring const getBibLabel() const;
///
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_;