]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.cpp
Make macro xhtml export more secure
[lyx.git] / src / mathed / MacroTable.cpp
index 31118ac6e086968bb258183df5874f5bde6bd2c0..24c9e07a5eacaef91d41dd9f887d0f78bc60338a 100644 (file)
@@ -114,11 +114,25 @@ vector<docstring> const & MacroData::defaults() const
 string const MacroData::requires() const
 {
        if (sym_)
-               return to_utf8(sym_->requires);
+               return sym_->requires;
        return string();
 }
 
 
+docstring const MacroData::xmlname() const
+{
+       if (sym_)
+               return sym_->xmlname;
+       return docstring();
+}
+
+
+char const * MacroData::MathMLtype() const
+{
+       return sym_ ? sym_->MathMLtype() : 0;
+}
+
+
 void MacroData::unlock() const
 {
        --lockCount_;