]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_casesinset.C
make naming a bit saner...
[lyx.git] / src / mathed / math_casesinset.C
index 083782564bcb54e813001d0932678178bd6e2001..5d992788c1a8a0253fa2a37b99e7b22e71425d4f 100644 (file)
@@ -1,14 +1,11 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_casesinset.h"
 #include "math_parser.h"
 #include "math_mathmlstream.h"
 #include "math_support.h"
-#include "Painter.h"
+#include "support/LOstream.h"
 
 
 MathCasesInset::MathCasesInset(row_type n)
@@ -22,15 +19,15 @@ MathInset * MathCasesInset::clone() const
 }
 
 
-void MathCasesInset::metrics(MathMetricsInfo const & mi) const
+void MathCasesInset::metrics(MathMetricsInfo & mi) const
 {
        MathGridInset::metrics(mi);
-       width_ += 8;
+       dim_.w += 8;
 }
 
 
-void MathCasesInset::draw(Painter & pain, int x, int y) const
-{ 
+void MathCasesInset::draw(MathPainterInfo & pain, int x, int y) const
+{
        mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
        MathGridInset::draw(pain, x + 8, y);
 }
@@ -52,13 +49,19 @@ void MathCasesInset::normalize(NormalStream & os) const
 {
        os << "[cases ";
        MathGridInset::normalize(os);
-       os << "]";
+       os << ']';
 }
 
 
-void MathCasesInset::maplize(MapleStream & os) const
+void MathCasesInset::maple(MapleStream & os) const
 {
        os << "cases(";
-       MathGridInset::maplize(os);
-       os << ")";
+       MathGridInset::maple(os);
+       os << ')';
+}
+
+
+void MathCasesInset::infoize(std::ostream & os) const
+{
+       os << "Cases ";
 }