]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinclude.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetinclude.h
index 5af50b7a2437de66a733ce7a0b781bb8658816a8..5b117d450b168700a660f75d1ee3e2d41f821a6a 100644 (file)
@@ -24,7 +24,7 @@ struct LaTeXFeatures;
 // Created by AAS 970521
 
 /// for including tex/lyx files
-class InsetInclude: public Inset {
+class InsetInclude: public InsetOld {
 public:
        /// the type of inclusion
        enum Flags {
@@ -74,9 +74,9 @@ public:
        void set(Params const & params);
 
        ///
-       virtual InsetBase * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode() const { return Inset::INCLUDE_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::INCLUDE_CODE; }
        /// This returns the list of labels on the child buffer
        void getLabelList(std::vector<string> &) const;
        /// This returns the list of bibkeys on the child buffer