]> 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 c5b1b977120cbf482cf0ad4b4f56c37d2fb23051..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,12 +29,14 @@ public:
        ///
        void write(Buffer const & buf, 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;
        ///
+       bool isMacroScope(Buffer const &) const { return true; }
+       ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
        ///
@@ -49,3 +52,5 @@ private:
 } // namespace lyx
 
 #endif
+
+#endif