]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnewline.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetnewline.h
index e3b3879609d2c666be2edde0eaef61ebe9910dd7..bd6988e9cc2569f4a15facdc0311a4eebdfdc9fb 100644 (file)
@@ -20,11 +20,7 @@ public:
 
        InsetNewline() {}
 
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetNewline);
-       }
-
-       InsetOld::Code lyxCode() const { return InsetOld::NEWLINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::NEWLINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
@@ -50,6 +46,11 @@ public:
        /// is this equivalent to a space (which is BTW different from
        // a line separator)?
        bool isSpace() const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetNewline);
+       }
 };
 
 #endif // INSET_NEWLINE_H