]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetenv.h
index ed8e0665b9cebbc66e267fe8e48af960f3cf1ba3..c3f78f05c9d80328f07705821a63b9c5d3621215 100644 (file)
@@ -20,22 +20,22 @@ public:
        ///
        InsetEnvironment(BufferParams const &, string const & name);
        ///
-       InsetEnvironment(InsetEnvironment const &, bool same_id = false);
+       InsetEnvironment(InsetEnvironment const &);
        ///
        void write(Buffer const * buf, std::ostream & os) const;
        ///
        void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
        ///
        int latex(Buffer const *, std::ostream &,
                  LatexRunParams const &) const;
        ///
        string const editMessage() const;
        ///
-       Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
+       InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
        bool isTextInset() const { return true; }
        ///