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

ODe_Frame_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_FRAME_LISTENER_H_
00023 #define ODE_FRAME_LISTENER_H_
00024 
00025 // Internal includes
00026 #include "ODe_AbiDocListenerImpl.h"
00027 
00028 // Abiword includes
00029 #include <ut_string_class.h>
00030 
00031 // External includes
00032 #include <stdio.h>
00033 
00034 // Internal classes
00035 class ODe_Styles;
00036 class ODe_AutomaticStyles;
00037 class ODe_AuxiliaryData;
00038 class ODe_ListenerAction;
00039 
00040 // AbiWord classes
00041 class PP_AttrProp;
00042 
00043 
00047 class ODe_Frame_Listener : public ODe_AbiDocListenerImpl {
00048 public:
00049 
00050     ODe_Frame_Listener(ODe_Styles& rStyles,
00051                        ODe_AutomaticStyles& rAutomatiStyles,
00052                        GsfOutput* pTextOutput,
00053                        ODe_AuxiliaryData& rAuxiliaryData,
00054                        UT_uint8 zIndex,
00055                        UT_uint8 spacesOffset);
00056 
00057     virtual void openFrame(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00058     virtual void closeFrame(ODe_ListenerAction& rAction);
00059 
00060     virtual void openTable(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00061     virtual void openBlock(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00062 
00063 private:
00064     void _openODTextbox(const PP_AttrProp& rAP, ODe_ListenerAction& rAction);
00065 
00066     ODe_Styles& m_rStyles;
00067     ODe_AutomaticStyles& m_rAutomatiStyles;
00068     GsfOutput* m_pTextOutput;
00069     ODe_AuxiliaryData& m_rAuxiliaryData;
00070     UT_uint8 m_zIndex;
00071 };
00072 
00073 #endif /*ODE_FRAME_LISTENER_H_*/

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1