]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMBox.cpp
* dynamic macros as described in http://1stein.org/download/dynmacro.pdf
[lyx.git] / src / mathed / InsetMathMBox.cpp
index 0e09e11b7a39da206ad6abc6904dae48c9e52e87..90b152f9c18d8b8bec4dd1103e3fe4b079fd9b16 100644 (file)
@@ -53,15 +53,11 @@ Inset * InsetMathMBox::clone() const
 }
 
 
-bool InsetMathMBox::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathMBox::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        TextMetrics & tm = mi.base.bv->textMetrics(&text_);
        tm.metrics(mi, dim);
        metricsMarkers2(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
 }
 
 
@@ -117,14 +113,8 @@ Text * InsetMathMBox::getText(int) const
 void InsetMathMBox::cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const
 {
-       x = text_.cursorX(bv, sl, boundary);
-       y = text_.cursorY(bv, sl, boundary);
-}
-
-
-void InsetMathMBox::drawSelection(PainterInfo & pi, int x, int y) const
-{
-       pi.base.bv->textMetrics(&text_).drawSelection(pi, x, y);
+       x = bv.textMetrics(&text_).cursorX(sl, boundary);
+       y = bv.textMetrics(&text_).cursorY(sl, boundary);
 }