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

ODe_Note_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 
00023 #ifndef ODE_NOTE_LISTENER_H_
00024 #define ODE_NOTE_LISTENER_H_
00025 
00026 // Internal includes
00027 #include "ODe_AbiDocListenerImpl.h"
00028 
00029 // Abiword includes
00030 #include <ut_types.h>
00031 
00032 // External includes
00033 #include <stdio.h>
00034 
00035 // Internal classes
00036 class ODe_Styles;
00037 class ODe_AutomaticStyles;
00038 class ODe_AuxiliaryData;
00039 
00040 // AbiWord classes
00041 class PP_AttrProp;
00042 
00043 
00047 class ODe_Note_Listener : public ODe_AbiDocListenerImpl {
00048 public:
00049 
00050     ODe_Note_Listener(ODe_Styles& rStyles,
00051                       ODe_AutomaticStyles& rAutomatiStyles,
00052                       GsfOutput* pTextOutput,
00053                       ODe_AuxiliaryData& rAuxiliaryData,
00054                       UT_uint8 spacesOffset);
00055 
00056 
00057     virtual void openFootnote(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00058     virtual void closeFootnote(ODe_ListenerAction& rAction);
00059 
00060     virtual void openEndnote(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00061     virtual void closeEndnote(ODe_ListenerAction& rAction);
00062 
00063     virtual void openBlock(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00064 
00065 private:
00066     void _openNote(const gchar* pNoteClass, const gchar* pNoteId,
00067                    ODe_ListenerAction& rAction);
00068     void _closeNote(ODe_ListenerAction& rAction);
00069 
00070     ODe_Styles& m_rStyles;
00071     ODe_AutomaticStyles& m_rAutomatiStyles;
00072     GsfOutput* m_pTextOutput;
00073     ODe_AuxiliaryData& m_rAuxiliaryData;
00074 
00075 };
00076 
00077 #endif /*ODE_NOTE_LISTENER_H_*/

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1