]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insettheorem.h
index f4d2d3ed731a776d8d5c109114d35cc85cad4b33..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcollapsable.h"
 
+
+namespace lyx {
+
 /** The theorem inset
 
 */
@@ -23,23 +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; }
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       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