X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettheorem.h;h=2e1d8d59b11c2f3d54ba7d859442e05802ca7b30;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=465479ba0b5d970b5236d26db124e8ff9c7537ba;hpb=b881ed2d5a4d26b062556d6d417c8f4624741878;p=lyx.git diff --git a/src/insets/insettheorem.h b/src/insets/insettheorem.h index 465479ba0b..2e1d8d59b1 100644 --- a/src/insets/insettheorem.h +++ b/src/insets/insettheorem.h @@ -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 &, - 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 doClone() const; + /// mutable unsigned int center_indent_; }; + +} // namespace lyx + #endif