]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTheorem.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetTheorem.h
index 0b337323cb6b67913815427b0f5b5c7dc1fecb58..80d12feaf68d3a7ce30c17f94d912ab578b97dd5 100644 (file)
@@ -9,9 +9,10 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef Inset.heorem_H
-#define Inset.heorem_H
+#if 0
 
+#ifndef INSETTHEOREM_H
+#define INSETTHEOREM_H
 
 #include "InsetCollapsable.h"
 
@@ -28,18 +29,20 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
+       InsetCode lyxCode() const { return THEOREM_CODE; }
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
+       bool isMacroScope(Buffer const &) const { return true; }
+       ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
        ///
        virtual docstring const editMessage() const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        mutable unsigned int center_indent_;
@@ -49,3 +52,5 @@ private:
 } // namespace lyx
 
 #endif
+
+#endif