4 #include "math_casesinset.h"
5 #include "math_parser.h"
6 #include "math_mathmlstream.h"
7 #include "math_support.h"
8 #include "support/LOstream.h"
11 MathCasesInset::MathCasesInset(row_type n)
12 : MathGridInset(2, n, 'c', "ll")
16 MathInset * MathCasesInset::clone() const
18 return new MathCasesInset(*this);
22 void MathCasesInset::metrics(MathMetricsInfo & mi) const
24 MathGridInset::metrics(mi);
29 void MathCasesInset::draw(MathPainterInfo & pain, int x, int y) const
31 mathed_draw_deco(pain, x + 1, y - ascent(), 6, height(), "{");
32 MathGridInset::draw(pain, x + 8, y);
36 void MathCasesInset::write(WriteStream & os) const
40 os << "\\begin{cases}\n";
41 MathGridInset::write(os);
48 void MathCasesInset::normalize(NormalStream & os) const
51 MathGridInset::normalize(os);
56 void MathCasesInset::maplize(MapleStream & os) const
59 MathGridInset::maplize(os);
64 void MathCasesInset::infoize(std::ostream & os) const