]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathTabular.cpp
index 89a8f262898162fe42740ab5c91ab0d285d912e6..3daac36c21ef09b10d3562194e3511ebd76dc4c0 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
 
 #include "MetricsInfo.h"
 
@@ -47,26 +46,17 @@ void InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        Changer dummy = mi.base.changeFontSet("textnormal");
        InsetMathGrid::metrics(mi, dim);
-       dim.wid += 6;
-}
-
-
-Dimension const InsetMathTabular::dimension(BufferView const & bv) const
-{
-       Dimension dim = InsetMathGrid::dimension(bv);
-       dim.wid += 6;
-       return dim;
 }
 
 
 void InsetMathTabular::draw(PainterInfo & pi, int x, int y) const
 {
        Changer dummy = pi.base.changeFontSet("textnormal");
-       InsetMathGrid::drawWithMargin(pi, x, y, 4, 2);
+       InsetMathGrid::draw(pi, x, y);
 }
 
 
-void InsetMathTabular::write(WriteStream & os) const
+void InsetMathTabular::write(TeXMathStream & os) const
 {
        ModeSpecifier specifier(os, TEXT_MODE);