5 #include "math_casesinset.h"
6 #include "math_parser.h"
7 #include "math_mathmlstream.h"
8 #include "math_support.h"
12 MathCasesInset::MathCasesInset(row_type n)
13 : MathGridInset(2, n, 'c', "ll")
17 MathInset * MathCasesInset::clone() const
19 return new MathCasesInset(*this);
23 void MathCasesInset::metrics(MathMetricsInfo const & mi) const
25 MathGridInset::metrics(mi);
30 void MathCasesInset::draw(Painter & pain, int x, int y) const
32 mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
33 MathGridInset::draw(pain, x + 8, y);
37 void MathCasesInset::write(WriteStream & os) const
41 os << "\\begin{cases}";
42 MathGridInset::write(os);
45 os << "\\end{cases}\n";
49 void MathCasesInset::normalize(NormalStream & os) const
52 MathGridInset::normalize(os);
57 void MathCasesInset::maplize(MapleStream & os) const
60 MathGridInset::maplize(os);