X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetBibitem.h;h=b0b1121a36bb7df593dbc3db01d8694f6aa34f48;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=68edfca092dab8fabe100c966803b694a5590895;hpb=5bb22d9498da67b2cc279b9c07271fb4c033ca39;p=lyx.git diff --git a/src/insets/InsetBibitem.h b/src/insets/InsetBibitem.h index 68edfca092..b0b1121a36 100644 --- a/src/insets/InsetBibitem.h +++ b/src/insets/InsetBibitem.h @@ -14,7 +14,7 @@ #include "InsetCommand.h" -#include "Biblio_typedefs.h" +#include "BiblioInfo.h" namespace lyx { @@ -35,27 +35,31 @@ public: /// EDITABLE editable() const { return IS_EDITABLE; } /// - Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; } - /// - void setCounter(int); - /// - int getCounter() const { return counter; } + InsetCode lyxCode() const { return BIBITEM_CODE; } /// docstring const getBibLabel() const; /// int plaintext(Buffer const &, odocstream &, OutputParams const &) const; /// virtual void fillWithBibKeys(Buffer const &, - biblio::BibKeyList &, InsetIterator const &) 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 doClone() const; + virtual Inset * clone() const; - /// - int counter; + /// The label that is set by updateLabels + docstring autolabel_; /// static int key_counter; };