00001 /* AbiSource 00002 * 00003 * Copyright (C) 2006 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., 59 Temple Place - Suite 330, Boston, MA 00019 * 02111-1307, USA. 00020 */ 00021 00022 #ifndef ODI_MANIFESTSTREAM_LISTENERSTATE_H_ 00023 #define ODI_MANIFESTSTREAM_LISTENERSTATE_H_ 00024 00025 #include <map> 00026 #include <string> 00027 00028 // Internal includes 00029 #include "../../common/xp/ODc_Crypto.h" 00030 #include "ODi_ListenerState.h" 00031 00032 // AbiWord classes 00033 class PD_Document; 00034 00035 00039 class ODi_ManifestStream_ListenerState : public ODi_ListenerState { 00040 public: 00041 00042 ODi_ManifestStream_ListenerState(PD_Document* pDocument, 00043 ODi_ElementStack& rElementStack, 00044 std::map<std::string, ODc_CryptoInfo>& cryptoInfo); 00045 00046 virtual ~ODi_ManifestStream_ListenerState(); 00047 00048 void startElement (const gchar* pName, const gchar** ppAtts, 00049 ODi_ListenerStateAction& rAction); 00050 00051 void endElement (const gchar* pName, ODi_ListenerStateAction& rAction); 00052 00053 void charData (const gchar* /*pBuffer*/, int /*length*/) {} 00054 00055 private: 00056 00057 PD_Document* m_pDocument; 00058 00059 std::string m_sFullPath; 00060 UT_sint64 m_iSize; 00061 ODc_CryptoInfo* m_pCryptoInfo; 00062 std::map<std::string, ODc_CryptoInfo>& m_cryptoInfo; 00063 }; 00064 00065 #endif /*ODI_MANIFESTSTREAM_LISTENERSTATE_H_*/
1.7.1