00001 /* AbiSource 00002 * 00003 * Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com> 00004 * Copyright (C) 2004 Robert Staudinger <robsta@stereolyzer.net> 00005 * Copyright (C) 2005 Daniel d'Andrada T. de Carvalho 00006 * <daniel.carvalho@indt.org.br> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00021 * 02110-1301 USA. 00022 */ 00023 00024 #ifndef _ODI_METASTREAM_LISTENERSTATE_H_ 00025 #define _ODI_METASTREAM_LISTENERSTATE_H_ 00026 00027 #include <string> 00028 00029 // Internal includes 00030 #include "ODi_ListenerState.h" 00031 00032 // AbiWord includes 00033 #include "ut_string_class.h" 00034 00035 // AbiWord classes 00036 class PD_Document; 00037 00041 class ODi_MetaStream_ListenerState : public ODi_ListenerState { 00042 00043 public: 00044 00045 ODi_MetaStream_ListenerState(PD_Document* pDocument, 00046 ODi_ElementStack& rElementStack); 00047 00048 virtual ~ODi_MetaStream_ListenerState() {} 00049 00050 void startElement (const gchar* pName, const gchar** ppAtts, 00051 ODi_ListenerStateAction& rAction); 00052 00053 void endElement (const gchar* pName, ODi_ListenerStateAction& rAction); 00054 00055 void charData (const gchar* pBuffer, int length); 00056 00057 private: 00058 00062 std::string m_charData; 00063 00064 PD_Document* m_pDocument; 00065 00073 std::string m_keywords; 00074 }; 00075 00076 #endif //_ODI_METASTREAM_LISTENERSTATE_H_