]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTheorem.h
Remove TextClassPtr without losing the type safety it provided.
[lyx.git] / src / insets / InsetTheorem.h
index 302fce7f8fdb81018d02469d61a999e5037c275e..74234954673ea0a4114f77d4b31c7b7dee675fc5 100644 (file)
@@ -27,20 +27,21 @@ public:
        ///
        Inset.heorem();
        ///
-       void write(Buffer const & buf, std::ostream & os) const;
+       void write(std::ostream & os) const;
        ///
-       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
+       InsetCode lyxCode() const { return THEOREM_CODE; }
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       bool isMacroScope() const { return true; }
        ///
-       virtual docstring const editMessage() const;
+       int latex(odocstream &, OutputParams const &) const;
+       ///
+       docstring editMessage() const;
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const;
 
        ///
        mutable unsigned int center_indent_;