]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_fontinset.C
index cc8c4fd54e1c7d0e2f01e2de47f1026288b43ca8..9a288afd7364f98b85e091426d242cbb0e2f802c 100644 (file)
@@ -1,18 +1,14 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#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"
 
 
 
@@ -47,8 +43,6 @@ void MathFontInset::metrics(MathMetricsInfo & mi) const
 
 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());
        cell(0).draw(pi, x + 1, y);
        drawMarkers(pi, x, y);
@@ -63,7 +57,6 @@ void MathFontInset::metricsT(TextMetricsInfo const & mi) const
 
 void MathFontInset::drawT(TextPainter & pain, int x, int y) const
 {
-       //lyxerr << "drawing font code: " << code_ << '\n';
        cell(0).drawT(pain, x, y);
 }
 
@@ -76,6 +69,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")