]> 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 f0817554454d23f4a9d33f7cbfbf856c95fb6b58..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;
        ///
-       InsetBase * 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,9 +61,9 @@ public:
        ///
        string const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) 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;
        ///