]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.cpp
visual mode for bidi cursor movement
[lyx.git] / src / mathed / InsetMathTabular.cpp
index 2e17fb401238fe2604cbb70da412b44be3b3fe43..bb4e5c48381e21d6f152a6e0513bbdc03ce976e7 100644 (file)
 #include <config.h>
 
 #include "InsetMathTabular.h"
+
 #include "MathData.h"
 #include "MathStream.h"
 #include "MathStream.h"
 
 #include "support/lstrings.h"
-#include "support/std_ostream.h"
 
-#include <iterator>
+#include <ostream>
 
 
 namespace lyx {
@@ -46,15 +46,19 @@ Inset * InsetMathTabular::clone() const
 }
 
 
-bool InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
        InsetMathGrid::metrics(mi, dim);
        dim.wid += 6;
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
+}
+
+
+Dimension const InsetMathTabular::dimension(BufferView const & bv) const
+{
+       Dimension dim = InsetMathGrid::dimension(bv);
+       dim.wid += 6;
+       return dim;
 }