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

ODi_Postpone_ListenerState.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2005 Daniel d'Andrada T. de Carvalho
00004  * <daniel.carvalho@indt.org.br>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 
00023 #ifndef _ODI_POSTPONE_LISTENERSTATE_H_
00024 #define _ODI_POSTPONE_LISTENERSTATE_H_
00025 
00026 // Internal includes
00027 #include "ODi_ListenerState.h"
00028 #include "ODi_XMLRecorder.h"
00029 
00030 
00039 class ODi_Postpone_ListenerState : public ODi_ListenerState {
00040 
00041 public:
00042     ODi_Postpone_ListenerState(ODi_ListenerState* pParserState,
00043                               bool bDeleteWhenPop,
00044                               ODi_ElementStack& rElementStack);
00045 
00046     virtual ~ODi_Postpone_ListenerState();
00047 
00048     void startElement (const gchar* pName, const gchar** ppAtts,
00049                        ODi_ListenerStateAction& rAction);
00050 
00051     void endElement (const gchar* pName, ODi_ListenerStateAction& rAction);
00052 
00053     void charData (const gchar* pBuffer, int length);
00054 
00055     ODi_ListenerState* getParserState() {return m_pParserState;}
00056     bool getDeleteParserStateWhenPop() const {return m_bDeleteParserStateWhenPop;}
00057     const ODi_XMLRecorder* getXMLRecorder() const {return &m_xmlRecorder;}
00058 
00059 private:
00060 
00061     ODi_XMLRecorder m_xmlRecorder;
00062 
00063     ODi_ListenerState* m_pParserState;
00064     bool m_bDeleteParserStateWhenPop;
00065 
00066     // Auxiliary variable to make us know when we reached the corresponding
00067     // end element tag of a given element.
00068     UT_uint32 m_elementStackCount;
00069 };
00070 
00071 #endif //_ODI_POSTPONE_LISTENERSTATE_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1