]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.h
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathCases.h
index 9f06cbdde82ba8197ccc4de6bea9cb727584476f..f6b9dfc52fcd22717ff813e245b1e1075d72eb01 100644 (file)
@@ -4,7 +4,7 @@
  * 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.
  */
@@ -23,29 +23,44 @@ class LaTeXFeatures;
 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(LCursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd) override;
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd,
-               FuncStatus & flag) const;
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
+               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(MathStream &) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void htmlize(HtmlStream &) const override;
+       ///
+       void write(WriteStream & 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 std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };