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., 59 Temple Place - Suite 330, Boston, MA 00021 * 02111-1307, USA. 00022 */ 00023 00024 #ifndef _ODI_CONTENTSTREAM_LISTENERSTATE_H_ 00025 #define _ODI_CONTENTSTREAM_LISTENERSTATE_H_ 00026 00027 // Internal includes 00028 #include "ODi_ListenerState.h" 00029 #include "ODi_ElementStack.h" 00030 00031 // External includes 00032 #include <gsf/gsf.h> 00033 00034 // Internal classes 00035 class ODi_FontFaceDecls; 00036 class ODi_Office_Styles; 00037 00038 // AbiWord classes 00039 class PD_Document; 00040 class ODi_Abi_Data; 00044 class ODi_ContentStream_ListenerState : public ODi_ListenerState { 00045 00046 public: 00047 00048 ODi_ContentStream_ListenerState (PD_Document* pDocument, 00049 GsfInfile* pGsfInfile, 00050 ODi_Office_Styles* pStyles, 00051 ODi_FontFaceDecls& rFontFaceDecls, 00052 ODi_ElementStack& rElementStack, 00053 ODi_Abi_Data & rAbiData); 00054 00055 virtual ~ODi_ContentStream_ListenerState(); 00056 00057 void startElement (const gchar* pName, const gchar** ppAtts, 00058 ODi_ListenerStateAction& rAction); 00059 00060 void endElement (const gchar* pName, ODi_ListenerStateAction& rAction); 00061 00062 void charData (const gchar* pBuffer, int length); 00063 00064 private: 00065 00066 PD_Document* m_pAbiDocument; 00067 GsfInfile* m_pGsfInfile; 00068 ODi_Office_Styles* m_pStyles; 00069 ODi_FontFaceDecls& m_rFontFaceDecls; 00070 ODi_Abi_Data& m_rAbiData; 00071 }; 00072 00073 #endif //_ODI_CONTENTSTREAM_LISTENERSTATE_H_
1.7.1