]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insettheorem.h
index ce91284428c9d06323760bcd56f0d744d3a07e50..b4e00a9d736d7a437a199f5bdf60b460b6dcf084 100644 (file)
@@ -25,8 +25,6 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       virtual InsetBase * clone() const;
-       ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
        void metrics(MetricsInfo &, Dimension &) const;
@@ -38,6 +36,8 @@ public:
        ///
        string const editMessage() const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
        mutable unsigned int center_indent_;
 };