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

ODe_TOC_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_TOC_LISTENER_H_
00023 #define ODE_TOC_LISTENER_H_
00024 
00025 #include <map>
00026 
00027 // Internal includes
00028 #include "ODe_AbiDocListenerImpl.h"
00029 
00030 // Internal classes
00031 class ODe_AuxiliaryData;
00032 
00033 // AbiWord classes
00034 class PP_AttrProp;
00035 
00046 class ODe_TOC_Listener: public ODe_AbiDocListenerImpl {
00047 public:
00048     ODe_TOC_Listener(ODe_AuxiliaryData& rAuxiliaryData);
00049 
00050     virtual void insertText(const UT_UTF8String& rText);
00051 
00052     virtual void insertTabChar();
00053 
00054     virtual void openBlock(const PP_AttrProp* pAP, ODe_ListenerAction& rAction);
00055     virtual void closeBlock();
00056 
00057 private:
00058     bool m_bInTOCBlock;
00059     ODe_AuxiliaryData& m_rAuxiliaryData;
00060 };
00061 
00062 #endif /*ODE_TOC_LISTENER_H_*/

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1