]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetwrap.h
index fd01ab8533f1ab1b854d06265763469126bb3043..5a6e6a011b148a5ffefc9ba74d99c722b215f2c6 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file insetwrap.h
  * This file is part of LyX, the document processor.
@@ -39,8 +40,6 @@ public:
        ///
        InsetWrap(BufferParams const &, string const &);
        ///
-       InsetWrap(InsetWrap const &);
-       ///
        ~InsetWrap();
        ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
@@ -51,9 +50,9 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset * clone(Buffer const &) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; }
        ///
        int latex(Buffer const *, std::ostream &,
                  LatexRunParams const &) const;
@@ -62,11 +61,9 @@ public:
        ///
        string const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
-       ///
-       int getMaxWidth(BufferView *, UpdatableInset const *) const;
+       bool insetAllowed(InsetOld::Code) const;
        ///
-       void addToToc(toc::TocList &, Buffer const *) const;
+       void addToToc(lyx::toc::TocList &, Buffer const *) const;
        ///
        bool  showInsetDialog(BufferView *) const;
        ///
@@ -92,7 +89,7 @@ public:
        ///
        virtual string const & name() const { return name_; }
        ///
-       virtual string const inset2string() const;
+       virtual string const inset2string(Buffer const &) const;
        ///
        static void string2params(string const &, InsetWrapParams &);
        ///