]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_arrayinset.C
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_arrayinset.C
index 6cbcd3a093861535da7b5fa21b47d54f4bdb7f33..be837bad25d22a580d2d71978c7cb812eefd2f78 100644 (file)
@@ -17,6 +17,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+#include "support/lstrings.h"
+
 #include <iterator>
 #include <sstream>
 
@@ -80,6 +82,8 @@ void MathArrayInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        ArrayChanger dummy(mi.base);
        MathGridInset::metrics(mi, dim);
+       dim.wid += 6;
+       dim_ = dim;
 }
 
 
@@ -87,7 +91,7 @@ void MathArrayInset::draw(PainterInfo & pi, int x, int y) const
 {
        setPosCache(pi, x, y);
        ArrayChanger dummy(pi.base);
-       MathGridInset::draw(pi, x + 1, y);
+       MathGridInset::drawWithMargin(pi, x, y, 4, 2);
 }
 
 
@@ -113,7 +117,9 @@ void MathArrayInset::write(WriteStream & os) const
 
 void MathArrayInset::infoize(std::ostream & os) const
 {
-       os << "Array";
+       string name = name_;
+       name[0] = lyx::support::uppercase(name[0]);
+       os << name << ' ';
 }