]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_casesinset.C
fix #1073
[lyx.git] / src / mathed / math_casesinset.C
index 5d992788c1a8a0253fa2a37b99e7b22e71425d4f..ae53aa089de26937323da62bfde44ab27426f6cf 100644 (file)
@@ -5,6 +5,7 @@
 #include "math_parser.h"
 #include "math_mathmlstream.h"
 #include "math_support.h"
+#include "LaTeXFeatures.h"
 #include "support/LOstream.h"
 
 
@@ -19,14 +20,14 @@ MathInset * MathCasesInset::clone() const
 }
 
 
-void MathCasesInset::metrics(MathMetricsInfo & mi) const
+void MathCasesInset::metrics(MetricsInfo & mi) const
 {
        MathGridInset::metrics(mi);
        dim_.w += 8;
 }
 
 
-void MathCasesInset::draw(MathPainterInfo & pain, int x, int y) const
+void MathCasesInset::draw(PainterInfo & pain, int x, int y) const
 {
        mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
        MathGridInset::draw(pain, x + 8, y);
@@ -65,3 +66,10 @@ void MathCasesInset::infoize(std::ostream & os) const
 {
        os << "Cases ";
 }
+
+
+void MathCasesInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathGridInset::validate(features);
+}