+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_support.h"
-#include "Painter.h"
+#include "support/LOstream.h"
MathCasesInset::MathCasesInset(row_type n)
}
-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);
}
{
if (os.fragile())
os << "\\protect";
- os << "\\begin{cases}";
+ os << "\\begin{cases}\n";
MathGridInset::write(os);
if (os.fragile())
os << "\\protect";
- os << "\\end{cases}\n";
+ os << "\\end{cases}";
}
{
os << "[cases ";
MathGridInset::normalize(os);
- os << "]";
+ os << ']';
}
{
os << "cases(";
MathGridInset::maplize(os);
- os << ")";
+ os << ')';
+}
+
+
+void MathCasesInset::infoize(std::ostream & os) const
+{
+ os << "Cases ";
}