• 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., 59 Temple Place - Suite 330, Boston, MA
00021  * 02111-1307, USA.
00022  */
00023 
00024 #ifndef _ODI_STYLESSTREAM_LISTENERSTATE_H_
00025 #define _ODI_STYLESSTREAM_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 
00035 // Internal classes
00036 class ODi_Office_Styles;
00037 class ODi_Abi_Data;
00038 
00039 // AbiWord classes
00040 class PD_Document;
00041 
00045 class ODi_StylesStream_ListenerState : public ODi_ListenerState {
00046 
00047 public:
00048 
00049     ODi_StylesStream_ListenerState (PD_Document* pAbiDocument,
00050                                    GsfInfile* pGsfInfile,
00051                                    ODi_Office_Styles* pStyles,
00052                                    ODi_ElementStack& rElementStack,
00053                                    ODi_Abi_Data& rAbiData);
00054 
00055     virtual ~ODi_StylesStream_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_Abi_Data& m_rAbiData;
00070     bool          m_bOutlineStyle;
00071 };
00072 
00073 #endif //_ODI_STYLESSTREAM_LISTENERSTATE_H_

Generated on Sun May 27 2012 for AbiWord by  doxygen 1.7.1