* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
class InsetMathCases : public InsetMathGrid {
public:
///
- explicit InsetMathCases(row_type rows = 1u);
+ explicit InsetMathCases(Buffer * buf, row_type rows = 1u);
///
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void write(WriteStream & os) const;
+ void mathmlize(MathMLStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void htmlize(HtmlStream &) const override;
+ ///
+ void write(TeXMathStream & os) const override;
+ ///
+ void validate(LaTeXFeatures & features) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_CASES_CODE; }
+ ///
+ int displayColSpace(col_type) const override;
+ ///
+ int leftMargin() const override { return 8; }
+ ///
+ int rightMargin() const override { return 0; }
+ /// see e.g. https://tex.stackexchange.com/a/133283/87201
+ bool handlesMulticolumn() const override { return true; }
+
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};