7 #include "math_casesinset.h"
8 #include "math_parser.h"
9 #include "math_mathmlstream.h"
10 #include "math_support.h"
11 #include "support/LOstream.h"
14 MathCasesInset::MathCasesInset(row_type n)
15 : MathGridInset(2, n, 'c', "ll")
19 MathInset * MathCasesInset::clone() const
21 return new MathCasesInset(*this);
25 void MathCasesInset::metrics(MathMetricsInfo & mi) const
27 MathGridInset::metrics(mi);
32 void MathCasesInset::draw(MathPainterInfo & pain, int x, int y) const
34 mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
35 MathGridInset::draw(pain, x + 8, y);
39 void MathCasesInset::write(WriteStream & os) const
43 os << "\\begin{cases}\n";
44 MathGridInset::write(os);
51 void MathCasesInset::normalize(NormalStream & os) const
54 MathGridInset::normalize(os);
59 void MathCasesInset::maplize(MapleStream & os) const
62 MathGridInset::maplize(os);
67 void MathCasesInset::infoize(std::ostream & os) const