00001 /* AbiSource 00002 * 00003 * Copyright (C) 2012 Prashant Bafna <appu.bafna@gmail.com> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA. 00019 */ 00020 00021 #ifndef _OXML_ELEMENT_MATH_H_ 00022 #define _OXML_ELEMENT_MATH_H_ 00023 00024 // Internal includes 00025 #include <OXML_Element.h> 00026 #include <ie_exp_OpenXML.h> 00027 00028 // AbiWord includes 00029 #include <ut_types.h> 00030 #include <ut_string.h> 00031 #include <pd_Document.h> 00032 00033 class OXML_Element_Math : public OXML_Element 00034 { 00035 public: 00036 OXML_Element_Math(const std::string & id); 00037 virtual ~OXML_Element_Math(); 00038 00039 virtual UT_Error serialize(IE_Exp_OpenXML* exporter); 00040 virtual UT_Error addToPT(PD_Document * pDocument); 00041 00042 void setMathML(const std::string & sMathML); 00043 const char * getMathML(); 00044 00045 private: 00046 std::string m_MathML; 00047 00048 }; 00049 00050 #endif //_OXML_ELEMENT_MATH_H_ 00051