]> 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 45324e926953fc6076623958f6cf9fe5f1e046b2..5a6e6a011b148a5ffefc9ba74d99c722b215f2c6 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file insetwrap.h
  * This file is part of LyX, the document processor.
@@ -49,9 +50,9 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset * clone() 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;
@@ -60,11 +61,9 @@ public:
        ///
        string const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
+       bool insetAllowed(InsetOld::Code) const;
        ///
-       int getMaxWidth(BufferView *, UpdatableInset const *) const;
-       ///
-       void addToToc(toc::TocList &, Buffer const *) const;
+       void addToToc(lyx::toc::TocList &, Buffer const *) const;
        ///
        bool  showInsetDialog(BufferView *) const;
        ///
@@ -90,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 &);
        ///