#include "InsetCommand.h"
+#include "BiblioInfo.h"
namespace lyx {
///
Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; }
///
- void setCounter(int);
- ///
- int getCounter() const { return counter; }
- ///
docstring const getBibLabel() const;
///
int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
+ ///
+ virtual void fillWithBibKeys(Buffer const &,
+ BiblioInfo &, InsetIterator const &) const;
+ /// Update the counter of this inset
+ virtual void updateLabels(Buffer const &, ParIterator const &);
+
protected:
///
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
- virtual std::auto_ptr<Inset> doClone() const;
+ virtual Inset * clone() const;
- ///
- int counter;
+ /// The label that is set by updateLabels
+ docstring autolabel_;
///
static int key_counter;
};