]> 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 ce91284428c9d06323760bcd56f0d744d3a07e50..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcollapsable.h"
 
+
+namespace lyx {
+
 /** The theorem inset
 
 */
@@ -25,21 +28,24 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       virtual InsetBase * clone() 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 &,
+       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