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 _OXMLI_LISTENERSTATE_MATH_H_ 00022 #define _OXMLI_LISTENERSTATE_MATH_H_ 00023 00024 // Internal includes 00025 #include <OXMLi_ListenerState.h> 00026 #include <OXMLi_Types.h> 00027 #include <OXML_Element_Math.h> 00028 00029 /* \class OXMLi_ListenerState_Math 00030 * \brief This ListenerState parses the Math. 00031 */ 00032 class OXMLi_ListenerState_Math : public OXMLi_ListenerState 00033 { 00034 public: 00035 OXMLi_ListenerState_Math(); 00036 void startElement (OXMLi_StartElementRequest * rqst); 00037 void endElement (OXMLi_EndElementRequest * rqst); 00038 void charData (OXMLi_CharDataRequest * rqst); 00039 00040 private: 00041 UT_ByteBuf* m_pMathBB; 00042 bool m_bInMath; 00043 00044 }; 00045 00046 #endif //_OXMLI_LISTENERSTATE_MATH_H_