]> 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 5d6cd5341646298393dfd15a620a523fccf6347b..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcollapsable.h"
 
+
+namespace lyx {
+
 /** The theorem inset
 
 */
@@ -23,18 +26,26 @@ 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; }
        ///
-       bool display() const { return true; }
+       bool 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 &, odocstream &,
+                 OutputParams const &) const;
        ///
-       string const editMessage() const;
+       virtual docstring const editMessage() const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
+       ///
+       mutable unsigned int center_indent_;
 };
 
+
+} // namespace lyx
+
 #endif