]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetline.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetline.h
index 9e5fb6c1871d1eb004415040348b7e1148b4ac35..c9751a31a1f89d5b242833c38d4bc76adad6e886 100644 (file)
@@ -20,11 +20,7 @@ public:
 
        InsetLine() {}
 
-       std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetLine);
-       }
-
-       InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
@@ -51,6 +47,11 @@ public:
        bool display() const { return true; }
        ///
        void validate(LaTeXFeatures & features) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetLine);
+       }
 };
 
 #endif // INSET_NEWLINE_H