]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
Final touch 'inset display()'; fix 'is a bit silly' bug
[lyx.git] / src / insets / insettheorem.h
index 8ade61ce048121b47e118e02f5b79bd989c34c56..465479ba0b5d970b5236d26db124e8ff9c7537ba 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;
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual InsetBase * clone() const;
        ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       bool display() const { return true; }
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       int latex(Buffer const *, std::ostream &, LatexRunParams const &,
-                 bool fragile, bool fp) const;
+       void draw(PainterInfo & pi, int x, int y) const;
+       ///
+       int latex(Buffer const &, std::ostream &,
+                 LatexRunParams const &) const;
        ///
        string const editMessage() const;
+private:
+       ///
+       mutable unsigned int center_indent_;
 };
 
 #endif