]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insettoc.h
index bc4c696cf88ef1ac9179c322285e32905684246f..d9e542cfef646f9f6d685faf03df92f553ad7243 100644 (file)
@@ -22,18 +22,12 @@ public:
        ///
        InsetTOC(InsetCommandParams const &);
        ///
-       //InsetTOC(InsetCommandParams const &, bool same_id);
-       ///
        ~InsetTOC();
        ///
-       virtual Inset * clone(Buffer const &) const {
-               return new InsetTOC(params());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetTOC(params()));
        }
        ///
-       //virtual Inset * clone(Buffer const &, bool same_id) const {
-       //      return new InsetTOC(params(), same_id);
-       //}
-       ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
        string const getScreenLabel(Buffer const *) const;
@@ -42,7 +36,7 @@ public:
        ///
        bool display() const { return true; }
        ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///