• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ODi_StylesStream_ListenerState.h

Go to the documentation of this file.
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_STYLESSTREAM_LISTENERSTATE_H_
00025 #define _ODI_STYLESSTREAM_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_Office_Styles;
00040 class ODi_Abi_Data;
00041 
00042 // AbiWord classes
00043 class PD_Document;
00044 
00048 class ODi_StylesStream_ListenerState : public ODi_ListenerState {
00049 
00050 public:
00051 
00052     ODi_StylesStream_ListenerState (PD_Document* pAbiDocument,
00053                                    GsfInfile* pGsfInfile,
00054                                    ODi_Office_Styles* pStyles,
00055                                    ODi_ElementStack& rElementStack,
00056                                    ODi_Abi_Data& rAbiData);
00057 
00058     virtual ~ODi_StylesStream_ListenerState ();
00059 
00060     void startElement (const gchar* pName, const gchar** ppAtts,
00061                                ODi_ListenerStateAction& rAction);
00062 
00063     void endElement (const gchar* pName, ODi_ListenerStateAction& rAction);
00064 
00065     void charData (const gchar* pBuffer, int length);
00066 
00067 private:
00068 
00069     PD_Document* m_pAbiDocument;
00070     GsfInfile* m_pGsfInfile;
00071     ODi_Office_Styles* m_pStyles;
00072     ODi_Abi_Data& m_rAbiData;
00073     bool          m_bOutlineStyle;
00074 };
00075 
00076 #endif //_ODI_STYLESSTREAM_LISTENERSTATE_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1