7 #include "math_casesinset.h"
8 #include "math_parser.h"
9 #include "math_mathmlstream.h"
10 #include "math_support.h"
13 MathCasesInset::MathCasesInset(row_type n)
14 : MathGridInset(2, n, 'c', "ll")
18 MathInset * MathCasesInset::clone() const
20 return new MathCasesInset(*this);
24 void MathCasesInset::metrics(MathMetricsInfo & mi) const
26 MathGridInset::metrics(mi);
31 void MathCasesInset::draw(MathPainterInfo & pain, int x, int y) const
33 mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
34 MathGridInset::draw(pain, x + 8, y);
38 void MathCasesInset::write(WriteStream & os) const
42 os << "\\begin{cases}\n";
43 MathGridInset::write(os);
50 void MathCasesInset::normalize(NormalStream & os) const
53 MathGridInset::normalize(os);
58 void MathCasesInset::maplize(MapleStream & os) const
61 MathGridInset::maplize(os);
66 void MathCasesInset::infoize(std::ostream & os) const