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 InsetBase * MathCasesInset::clone() const
19 return new MathCasesInset(*this);
23 void MathCasesInset::metrics(MetricsInfo & mi, Dimension & dim) const
25 MathGridInset::metrics(mi);
31 void MathCasesInset::draw(PainterInfo & pain, int x, int y) const
33 mathed_draw_deco(pain, x + 1, y - dim_.ascent(), 6, dim_.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::maple(MapleStream & os) const
61 MathGridInset::maple(os);
66 void MathCasesInset::infoize(std::ostream & os) const
72 void MathCasesInset::validate(LaTeXFeatures & features) const
74 features.require("amsmath");
75 MathGridInset::validate(features);