]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbib.h
some reindentation, revert workarea xpos++, constify, remove all traces of LyXParagra...
[lyx.git] / src / insets / insetbib.h
index 05f257bd3e70547acec08350de8f769f07b4aaf7..6995e60055bfd74aba3dde09f94e544e348530d4 100644 (file)
@@ -20,7 +20,6 @@
 #include "insetcommand.h"
 
 class Buffer;
-struct FD_bibitem_form;
 
 /** Used to insert bibitem's information (key and label)
   
@@ -34,7 +33,7 @@ public:
        ///
        ~InsetBibKey();
        ///
-       Inset * Clone() const;
+       Inset * Clone(Buffer const &) const;
        /** Currently \bibitem is used as a LyX2.x command,
            so we need this method.
        */
@@ -58,7 +57,7 @@ public:
         ///
         int  getCounter() const { return counter; }
        ///
-       void callback( FD_bibitem_form *, long );
+       string const getBibLabel() const;
        ///
        struct Holder {
                InsetBibKey * inset;
@@ -70,6 +69,8 @@ private:
         int counter;
        ///
        Holder holder;
+       ///
+       static int key_counter;
 };
 
 
@@ -82,7 +83,9 @@ public:
        ///
        ~InsetBibtex();
        ///
-       Inset * Clone() const { return new InsetBibtex(params()); }
+       Inset * Clone(Buffer const &) const {
+               return new InsetBibtex(params());
+       }
        ///
        string const getScreenLabel() const;
        ///