]> 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 ceb3069c28190b83d8fb0bad38e461e9a75e3192..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,7 +49,7 @@ public:
        void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
-       // Don't need mathmlize or htmlize, as this is handled by 
+       // 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;
@@ -54,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_;
 };