]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xyarrowinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_xyarrowinset.C
index f2506827ee888f74912eed29b1ef7215510a306c..50e80a2bff5ebc7a306311f7229ea88782342516 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_xyarrowinset.h"
 #include "math_xymatrixinset.h"
@@ -21,7 +18,7 @@ MathXYArrowInset::MathXYArrowInset()
 {}
 
 
-MathInset * MathXYArrowInset::clone() const
+InsetBase * MathXYArrowInset::clone() const
 {
        return new MathXYArrowInset(*this);
 }
@@ -48,11 +45,11 @@ MathArray const & MathXYArrowInset::targetCell() const
                        case 'd': ++y; break;
                }
        }
-       //lyxerr << "target: x: " << x << " y: " << y << "\n";
+       //lyxerr << "target: x: " << x << " y: " << y << endl;
        MathInset::idx_type n = mi_.idx + p->ncols() * y + x;
        if (n >= p->nargs()) {
-               lyxerr << "source: n: " << mi_.idx << "\n";
-               lyxerr << "target: n: " << n << " out of range\n";
+               lyxerr << "source: n: " << mi_.idx << "\n"
+                      << "target: n: " << n << " out of range" << endl;
                n = 0;
        }
   return p->cell(n);
@@ -74,11 +71,11 @@ MathArray const & MathXYArrowInset::sourceCell() const
 }
 
 
-void MathXYArrowInset::metrics(MathMetricsInfo & mi) const
+void MathXYArrowInset::metrics(MetricsInfo & mi) const
 {
        MathNestInset::metrics(mi);
        mi_   = mi;
-       MathFontSetChanger dummy(mi.base, "textrm");
+       FontSetChanger dummy(mi.base, "textrm");
 #if 0
        target_ = mi.inset ? mi.inset->asXYMatrixInset() : 0;
 
@@ -97,10 +94,10 @@ void MathXYArrowInset::metrics(MathMetricsInfo & mi) const
 }
 
 
-void MathXYArrowInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathXYArrowInset::draw(PainterInfo & pi, int x, int y) const
 {
        metrics(mi_);
-       MathFontSetChanger dummy(pi.base, "textrm");
+       FontSetChanger dummy(pi.base, "textrm");
 
        if (editing()) {