4 #include "math_casesinset.h"
5 #include "math_parser.h"
6 #include "math_mathmlstream.h"
7 #include "math_support.h"
8 #include "LaTeXFeatures.h"
9 #include "support/LOstream.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(MetricsInfo & mi) const
25 MathGridInset::metrics(mi);
30 void MathCasesInset::draw(PainterInfo & 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}\n";
42 MathGridInset::write(os);
49 void MathCasesInset::normalize(NormalStream & os) const
52 MathGridInset::normalize(os);
57 void MathCasesInset::maple(MapleStream & os) const
60 MathGridInset::maple(os);
65 void MathCasesInset::infoize(std::ostream & os) const
71 void MathCasesInset::validate(LaTeXFeatures & features) const
73 features.require("amsmath");
74 MathGridInset::validate(features);