]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXArrow.cpp
MathML for XArrow.
[lyx.git] / src / mathed / InsetMathXArrow.cpp
index d9579ba5cf5996ec452626d4e4103746076dded5..54d73563817641a4580d5d899dfe06c99bd1c17a 100644 (file)
@@ -76,6 +76,16 @@ void InsetMathXArrow::normalize(NormalStream & os) const
 }
 
 
+void InsetMathXArrow::mathmlize(MathStream & ms) const
+{
+       char const * const arrow = name_ == "xleftarrow" 
+                       ? "←" : "→";
+       ms << "<munderover accent='false' accentunder='false'>"
+          << arrow << cell(1) << cell(0)
+          << "</munderover>";
+}
+
+
 void InsetMathXArrow::validate(LaTeXFeatures & features) const
 {
        features.require("amsmath");