]> 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 53ba5267c6fab20c6c9c6f264110d92304366851..b4e00a9d736d7a437a199f5bdf60b460b6dcf084 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef InsetTheorem_H
@@ -23,18 +23,23 @@ public:
        ///
        InsetTheorem();
        ///
-       void write(Buffer const * buf, std::ostream & os) const;
-       ///
-       virtual Inset * clone() const;
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       bool display() const { return true; }
+       void metrics(MetricsInfo &, Dimension &) const;
+       ///
+       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_;
 };
 
 #endif