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

ODe_AbiDocListenerImpl.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com>
00004  *
00005  * Copyright (C) 2005 INdT
00006  * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br>
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00021  * 02110-1301 USA.
00022  */
00023 
00024 
00025 #ifndef _ODE_ABIDOCLISTENERIMPL_H_
00026 #define _ODE_ABIDOCLISTENERIMPL_H_
00027 
00028 // Abiword includes
00029 #include <ut_types.h>
00030 #include <fd_Field.h>
00031 
00032 // Internal classes
00033 class ODe_ListenerAction;
00034 
00035 // AbiWord classes
00036 class PP_AttrProp;
00037 class UT_UTF8String;
00038 
00042 class ODe_AbiDocListenerImpl {
00043 public:
00044     ODe_AbiDocListenerImpl() {m_spacesOffset = 0;}
00045     ODe_AbiDocListenerImpl(UT_uint8 spacesOffset) : m_spacesOffset(spacesOffset) {}
00046 
00047     virtual ~ODe_AbiDocListenerImpl() {}
00048 
00049     virtual void insertText(const UT_UTF8String& /*rText*/) {}
00050 
00051     virtual void insertLineBreak() {}
00052     virtual void insertColumnBreak() {}
00053     virtual void insertPageBreak() {}
00054     virtual void insertTabChar() {}
00055 
00056     virtual void openSpan(const PP_AttrProp* /*pAP*/) {}
00057     virtual void closeSpan() {}
00058 
00059     virtual void openBlock(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00060     virtual void closeBlock() {}
00061 
00062     virtual void openSection(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00063     virtual void closeSection(ODe_ListenerAction& /*rAction*/) {}
00064 
00065     virtual void openField(const fd_Field* /*field*/, const UT_UTF8String& /*fieldType*/, const UT_UTF8String& /*fieldValue*/) {}
00066     virtual void closeField(const UT_UTF8String& /*fieldType*/) {}
00067 
00068     virtual void openTable(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00069     virtual void closeTable(ODe_ListenerAction& /*rAction*/) {}
00070 
00071     virtual void openCell(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00072     virtual void closeCell(ODe_ListenerAction& /*rAction*/) {}
00073 
00074     virtual void openFootnote(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00075     virtual void closeFootnote(ODe_ListenerAction& /*rAction*/) {}
00076 
00077     virtual void openEndnote(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00078     virtual void closeEndnote(ODe_ListenerAction& /*rAction*/) {}
00079 
00080     virtual void openAnnotation(const PP_AttrProp* /*pAP*/, const std::string& /*name*/, PD_Document* doc = 0 ) { UT_UNUSED(doc); }
00081     virtual void closeAnnotation( const std::string& /*name*/ ) {}
00082     virtual void endAnnotation( const std::string& /*name*/ ) {}
00083 
00084     virtual void openFrame(const PP_AttrProp* /*pAP*/, ODe_ListenerAction& /*rAction*/) {}
00085     virtual void closeFrame(ODe_ListenerAction& /*rAction*/) {}
00086 
00087     virtual void openTOC(const PP_AttrProp* /*pAP*/) {}
00088     virtual void closeTOC() {}
00089 
00090     virtual void openBookmark(const PP_AttrProp* /*pAP*/) {}
00091     virtual void closeBookmark(const PP_AttrProp* /*pAP*/) {}
00092     virtual void closeBookmark(UT_UTF8String & /*sBookmarkName*/) {}
00093 
00094     virtual void openHyperlink(const PP_AttrProp* /*pAP*/) {}
00095     virtual void closeHyperlink() {}
00096 
00097     virtual void openRDFAnchor(const PP_AttrProp* /*pAP*/) {}
00098     virtual void closeRDFAnchor(const PP_AttrProp* /*pAP*/) {}
00099 
00100     virtual void insertInlinedImage(const gchar* /*pImageName*/,
00101                                     const PP_AttrProp* /*pAP*/) {}
00102 
00103 protected:
00104 
00105     void _printSpacesOffset(UT_UTF8String& rOutput);
00106 
00107     UT_uint8 m_spacesOffset;
00108 };
00109 
00110 #endif // _ODE_ABIDOCLISTENERIMPL_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1