]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTheorem.h
* Lazy MathData to avoid unneeded interpretation of macro definitions
[features.git] / src / insets / InsetTheorem.h
index 6607d5f7f81a14fa1f1dcefeeaa66c29828a9c15..d22c3451c01de0900b1e9d487a3a154a4bd9f38e 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; }
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
+       bool isMacroScope(Buffer const & buf) const { return true; }
+       ///
        int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
        ///
@@ -49,3 +52,5 @@ private:
 } // namespace lyx
 
 #endif
+
+#endif