]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insettheorem.h
index e7e457d102304da347acce5878158a6c22cd9371..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 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
@@ -15,6 +15,9 @@
 
 #include "insetcollapsable.h"
 
+
+namespace lyx {
+
 /** The theorem inset
 
 */
@@ -23,20 +26,26 @@ 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 &) const;
+       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       //virtual Inset * clone(Buffer const &, bool same_id) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       bool display() const { return true; }
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       virtual docstring const editMessage() const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
-       string const editMessage() const;
+       mutable unsigned int center_indent_;
 };
 
+
+} // namespace lyx
+
 #endif