]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.C
small up/down tweaking
[lyx.git] / src / mathed / math_fontinset.C
index d0b8e3f948be05b8d39d031fc3b136e000c0f998..1eef2d1d4551f2dae06fc740f0ae1b1c78b842da 100644 (file)
@@ -5,14 +5,13 @@
 #endif
 
 #include "math_fontinset.h"
-#include "debug.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
 #include "math_parser.h"
 #include "LaTeXFeatures.h"
+#include "support/LOstream.h"
 #include "textpainter.h"
-#include "frontends/Painter.h"
 
 
 
@@ -40,31 +39,28 @@ MathInset::mode_type MathFontInset::currentMode() const
 void MathFontInset::metrics(MathMetricsInfo & mi) const
 {
        MathFontSetChanger dummy(mi.base, key_->name.c_str());
-       dim_ = xcell(0).metrics(mi);
+       dim_ = cell(0).metrics(mi);
        metricsMarkers();
 }
 
 
 void MathFontInset::draw(MathPainterInfo & pi, int x, int y) const
 {
-       //lyxerr << "MathFontInset::draw\n";
-       //MathNestInset::draw(pi, x, y);
        MathFontSetChanger dummy(pi.base, key_->name.c_str());
-       xcell(0).draw(pi, x + 1, y);
+       cell(0).draw(pi, x + 1, y);
        drawMarkers(pi, x, y);
 }
 
 
 void MathFontInset::metricsT(TextMetricsInfo const & mi) const
 {
-       dim_ = xcell(0).metricsT(mi);
+       dim_ = cell(0).metricsT(mi);
 }
 
 
 void MathFontInset::drawT(TextPainter & pain, int x, int y) const
 {
-       //lyxerr << "drawing font code: " << code_ << '\n';
-       xcell(0).drawT(pain, x, y);
+       cell(0).drawT(pain, x, y);
 }
 
 
@@ -76,6 +72,7 @@ string MathFontInset::name() const
 
 void MathFontInset::validate(LaTeXFeatures & features) const
 {
+       MathNestInset::validate(features);
        // Make sure amssymb is put in preamble if Blackboard Bold or
        // Fraktur used:
        if (key_->name == "mathfrak" || key_->name == "mathbb")