]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibitem.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetbibitem.h
index b1f15eae6ff6928865d88b38474132e15c37f506..d0db9df07187935f6f149d2dcdeb0ef572700f42 100644 (file)
@@ -29,7 +29,7 @@ public:
        ///
        ~InsetBibitem();
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const;
+       std::auto_ptr<InsetBase> clone() const;
        ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        /** Currently \bibitem is used as a LyX2.x command,
@@ -43,7 +43,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::BIBITEM_CODE; }
        /// keep .lyx format compatible
        bool directWrite() const { return true; }
        ///
@@ -52,18 +52,11 @@ public:
        int getCounter() const { return counter; }
        ///
        string const getBibLabel() const;
-       ///
-       struct Holder {
-               InsetBibitem * inset;
-               BufferView * view;
-       };
 
 private:
        ///
        int counter;
        ///
-       Holder holder;
-       ///
        static int key_counter;
 };