]> 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 160c2a89311e451248ad7dce5901d008d897531d..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
@@ -133,7 +133,6 @@ private:
        boost::scoped_ptr<PreviewImpl> const preview_;
 
        /// cache
-       mutable Dimension dim_;
        mutable bool set_label_;
        mutable ButtonRenderer button_;
 };
@@ -155,7 +154,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 &, InsetInclude::Params &);
        ///