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

ODe_Main_Listener.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2005 INdT
00004  * Author: Daniel d'Andrada T. de Carvalho <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 #ifndef _ODE_MAIN_LISTENER_H_
00023 #define _ODE_MAIN_LISTENER_H_
00024 
00025 // Internal includes
00026 #include "ODe_AutomaticStyles.h"
00027 #include "ODe_Styles.h"
00028 #include "ODe_AbiDocListenerImpl.h"
00029 #include "ODe_FontFaceDecls.h"
00030 
00031 // Internal classes
00032 class ODe_AuxiliaryData;
00033 class ODe_ListenerAction;
00034 class ODe_DocumentData;
00035 
00036 // External includes
00037 #include <stdio.h>
00038 
00039 // AbiWord classes
00040 class PD_Document;
00041 class PP_AttrProp;
00042 
00043 
00049 class ODe_Main_Listener : public ODe_AbiDocListenerImpl {
00050 
00051 public:
00052 
00053     ODe_Main_Listener(ODe_DocumentData& rDocumentData,
00054                       ODe_AuxiliaryData& rAuxiliaryData);
00055     virtual ~ODe_Main_Listener();
00056 
00057     // Listener methods
00058 
00059     virtual void openSection(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00060     virtual void closeSection(ODe_ListenerAction& rAction);
00061 
00062 private:
00063 
00064     bool _isHeaderFooterSection(const PP_AttrProp* pAP) const;
00065 
00066     void _openHeaderFooterSection(const PP_AttrProp* pAP,
00067                                   ODe_ListenerAction& rAction);
00068 
00069     ODe_DocumentData& m_rDocumentData;
00070     ODe_AuxiliaryData& m_rAuxiliaryData;
00071 
00072     bool m_onHeaderFooterSection;
00073     bool m_openedODSection;
00074 
00075     bool m_isFirstSection;
00076 };
00077 
00078 #endif //_ODE_MAIN_LISTENER_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1