]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDFrac.C
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / InsetMathDFrac.C
index 3b3ec6caa949f5c67ad2685411745761df759c30..e2c771e091d904c0026cbc69a9a2bcba520a9d62 100644 (file)
 
 #include "InsetMathDFrac.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "LaTeXFeatures.h"
 #include "LColor.h"
 #include "frontends/Painter.h"
 
 
+namespace lyx {
+
+
 using std::string;
 using std::max;
 using std::auto_ptr;
@@ -55,13 +58,13 @@ void InsetMathDFrac::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-string InsetMathDFrac::name() const
+docstring InsetMathDFrac::name() const
 {
-       return "dfrac";
+       return from_ascii("dfrac");
 }
 
 
-void InsetMathDFrac::mathmlize(MathMLStream & os) const
+void InsetMathDFrac::mathmlize(MathStream & os) const
 {
        os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac");
 }
@@ -72,3 +75,6 @@ void InsetMathDFrac::validate(LaTeXFeatures & features) const
        features.require("amsmath");
        InsetMathNest::validate(features);
 }
+
+
+} // namespace lyx