]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetBibitem.h
index 98db70e68d569f40858c8a47308ed1c4bdc03792..22da0eaf9c2f61b9bb67d479de2fa638b0e1d45b 100644 (file)
@@ -14,6 +14,7 @@
 
 
 #include "InsetCommand.h"
+#include "BiblioInfo.h"
 
 
 namespace lyx {
@@ -36,26 +37,23 @@ public:
        ///
        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 &,
-               std::vector<std::pair<std::string, docstring> > &,
-               InsetIterator const &) 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;
 };