]> 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 930a2bef4ba5a0166531fdfd5f6002067a234772..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;
        ///
@@ -55,15 +62,17 @@ public:
        ///
        char const * name_right() const;
        ///
-       int leftMargin() const { return 6; } //override
+       int leftMargin() const { return small() ? 3 : 6; } //override
        ///
-       int rightMargin() const { return 8; } //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_;
 };