]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTFrac.C
cursor is no more damaging the background. L-shaped cursor is broken right now....
[lyx.git] / src / mathed / InsetMathTFrac.C
index daf7772ae8669da0c0cb2a03515fc63ec1c38dfa..102c061e2cf1df1df664da2d2d3e357b10509d2a 100644 (file)
@@ -13,7 +13,7 @@
 #include "InsetMathTFrac.h"
 
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 
 #include "LaTeXFeatures.h"
 #include "LColor.h"
@@ -21,6 +21,9 @@
 #include "frontends/Painter.h"
 
 
+namespace lyx {
+
+
 using std::string;
 using std::max;
 using std::auto_ptr;
@@ -60,13 +63,13 @@ void InsetMathTFrac::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-string InsetMathTFrac::name() const
+docstring InsetMathTFrac::name() const
 {
-       return "tfrac";
+       return from_ascii("tfrac");
 }
 
 
-void InsetMathTFrac::mathmlize(MathMLStream & os) const
+void InsetMathTFrac::mathmlize(MathStream & os) const
 {
        os << MTag("mtfrac") << cell(0) << cell(1) << ETag("mtfrac");
 }
@@ -77,3 +80,6 @@ void InsetMathTFrac::validate(LaTeXFeatures & features) const
        features.require("amsmath");
        InsetMathNest::validate(features);
 }
+
+
+} // namespace lyx