]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathAMSArray.h
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / InsetMathAMSArray.h
index 631d7db9a4995a05ee4489c78e6d0b50f36c2d2f..25b81339dc650a85e20c5eee1901dbca786818eb 100644 (file)
@@ -23,7 +23,14 @@ public:
        ///
        InsetMathAMSArray(Buffer * buf, docstring const &, int m, int n);
        ///
-       InsetMathAMSArray(Buffer * buf, docstring const &);
+       InsetMathAMSArray(Buffer * buf, docstring const &);     ///
+
+       ///
+       int rowsep() const;
+       ///
+       int colsep() const;
+       ///
+       int border() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -42,9 +49,10 @@ public:
        void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
-       // Don't need mathmlize as it is handled by InsetMathMatrix,
-       // after being extracted in MathExtern.
+       // Don't need mathmlize or htmlize, as this is handled by
+       // InsetMathMatrix after being extracted in MathExtern.
        // void mathmlize(MathStream &) const;
+       // void htmlize(HTMLStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
@@ -53,9 +61,18 @@ public:
        char const * name_left() const;
        ///
        char const * name_right() const;
+       ///
+       int leftMargin() const { return small() ? 3 : 6; } //override
+       ///
+       int rightMargin() const { return small() ? 3: 6; } //override
+       ///
+       bool handlesMulticolumn() const { return true; } //override
+
 private:
        virtual Inset * clone() const;
        ///
+       bool small() const { return name_ == "smallmatrix"; }
+       ///
        docstring name_;
 };