]> 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 f4d2d3ed731a776d8d5c109114d35cc85cad4b33..b4e00a9d736d7a437a199f5bdf60b460b6dcf084 100644 (file)
@@ -23,9 +23,7 @@ public:
        ///
        InsetTheorem();
        ///
-       void write(Buffer const * buf, std::ostream & os) const;
-       ///
-       virtual InsetBase * clone() const;
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
@@ -33,11 +31,13 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       int latex(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
        ///
        string const editMessage() const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
        mutable unsigned int center_indent_;
 };