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_CONTENTSTREAM_LISTENERSTATE_H_ 00025 #define _ODI_CONTENTSTREAM_LISTENERSTATE_H_ 00026 00027 #include "ut_compiler.h" 00028 00029 // Internal includes 00030 #include "ODi_ListenerState.h" 00031 #include "ODi_ElementStack.h" 00032 00033 // External includes 00034 ABI_W_NO_CONST_QUAL 00035 #include <gsf/gsf.h> 00036 ABI_W_POP 00037 00038 // Internal classes 00039 class ODi_FontFaceDecls; 00040 class ODi_Office_Styles; 00041 00042 // AbiWord classes 00043 class PD_Document; 00044 class ODi_Abi_Data; 00048 class ODi_ContentStream_ListenerState : public ODi_ListenerState { 00049 00050 public: 00051 00052 ODi_ContentStream_ListenerState (PD_Document* pDocument, 00053 GsfInfile* pGsfInfile, 00054 ODi_Office_Styles* pStyles, 00055 ODi_FontFaceDecls& rFontFaceDecls, 00056 ODi_ElementStack& rElementStack, 00057 ODi_Abi_Data & rAbiData); 00058 00059 virtual ~ODi_ContentStream_ListenerState(); 00060 00061 void startElement (const gchar* pName, const gchar** ppAtts, 00062 ODi_ListenerStateAction& rAction); 00063 00064 void endElement (const gchar* pName, ODi_ListenerStateAction& rAction); 00065 00066 void charData (const gchar* pBuffer, int length); 00067 00068 private: 00069 00070 PD_Document* m_pAbiDocument; 00071 GsfInfile* m_pGsfInfile; 00072 ODi_Office_Styles* m_pStyles; 00073 ODi_FontFaceDecls& m_rFontFaceDecls; 00074 ODi_Abi_Data& m_rAbiData; 00075 }; 00076 00077 #endif //_ODI_CONTENTSTREAM_LISTENERSTATE_H_