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

ODi_ContentStreamAnnotationMatcher_ListenerState.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2011 Ben Martin
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef _ODI_CONTENTSTREAM_ANNOTATIONMATCHER_LISTENERSTATE_H_
00022 #define _ODI_CONTENTSTREAM_ANNOTATIONMATCHER_LISTENERSTATE_H_
00023 
00024 #include "ut_compiler.h"
00025 
00026 // Internal includes
00027 #include "ODi_ListenerState.h"
00028 #include "ODi_ElementStack.h"
00029 
00030 // External includes
00031 ABI_W_NO_CONST_QUAL
00032 #include <gsf/gsf.h>
00033 ABI_W_POP
00034 
00035 #include <set>
00036 
00037 // Internal classes
00038 class ODi_FontFaceDecls;
00039 class ODi_Office_Styles;
00040 
00041 // AbiWord classes
00042 class PD_Document;
00043 class ODi_Abi_Data;
00047 class ODi_ContentStreamAnnotationMatcher_ListenerState : public ODi_ListenerState {
00048 
00049 public:
00050 
00051     ODi_ContentStreamAnnotationMatcher_ListenerState ( PD_Document* pDocument,
00052                                                        GsfInfile* pGsfInfile,
00053                                                        ODi_Office_Styles* pStyles,
00054                                                        ODi_ElementStack& rElementStack,
00055                                                        ODi_Abi_Data & rAbiData );
00056 
00057     virtual ~ODi_ContentStreamAnnotationMatcher_ListenerState();
00058 
00059     void startElement( const gchar* pName, const gchar** ppAtts,
00060                        ODi_ListenerStateAction& rAction );
00061     void endElement  ( const gchar* pName, ODi_ListenerStateAction& rAction );
00062     void charData    ( const gchar* pBuffer, int length );
00063 
00064     const std::set< std::string >& getRangedAnnotationNames() const;
00065 
00066 private:
00067 
00068     PD_Document* m_pAbiDocument;
00069     GsfInfile* m_pGsfInfile;
00070     ODi_Office_Styles* m_pStyles;
00071     ODi_Abi_Data& m_rAbiData;
00072 
00073 
00074 };
00075 
00076 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1