#include <OXML_Element_Math.h>
Public Member Functions | |
OXML_Element_Math (const std::string &id) | |
virtual | ~OXML_Element_Math () |
virtual UT_Error | serialize (IE_Exp_OpenXML *exporter) |
virtual UT_Error | addToPT (PD_Document *pDocument) |
void | setMathML (const std::string &sMathML) |
const char * | getMathML () |
Private Attributes | |
std::string | m_MathML |
OXML_Element_Math::OXML_Element_Math | ( | const std::string & | id | ) |
OXML_Element_Math::~OXML_Element_Math | ( | ) | [virtual] |
UT_Error OXML_Element_Math::addToPT | ( | PD_Document * | pDocument | ) | [virtual] |
Reimplemented from OXML_Element.
References PD_Document::appendObject(), UT_UTF8String::assign(), convertLaTeXtoEqn(), convertMathMLtoLaTeX(), PD_Document::createDataItem(), PD_Document::getUID(), id, m_MathML, UT_UniqueId::Math, PTO_Math, UT_UTF8String::size(), UT_ERROR, UT_std_string_sprintf(), and UT_UTF8String::utf8_str().
const char * OXML_Element_Math::getMathML | ( | ) |
References m_MathML, and UT_return_val_if_fail.
Referenced by serialize().
UT_Error OXML_Element_Math::serialize | ( | IE_Exp_OpenXML * | exporter | ) | [virtual] |
Reimplemented from OXML_Element.
References convertMathMLtoOMML(), IE_Exp_OpenXML::finishMath(), getMathML(), IE_Exp_OpenXML::startMath(), UT_OK, and IE_Exp_OpenXML::writeMath().
void OXML_Element_Math::setMathML | ( | const std::string & | sMathML | ) |
References m_MathML.
Referenced by OXMLi_ListenerState_Math::endElement(), and IE_Exp_OpenXML_Listener::populate().
std::string OXML_Element_Math::m_MathML [private] |
Referenced by addToPT(), getMathML(), and setMathML().