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., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 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(ODi_ElementStack& rElementStack, 00043 std::map<std::string, ODc_CryptoInfo>& cryptoInfo); 00044 00045 virtual ~ODi_ManifestStream_ListenerState(); 00046 00047 void startElement (const gchar* pName, const gchar** ppAtts, 00048 ODi_ListenerStateAction& rAction); 00049 00050 void endElement (const gchar* pName, ODi_ListenerStateAction& rAction); 00051 00052 void charData (const gchar* /*pBuffer*/, int /*length*/) {} 00053 00054 private: 00055 00056 std::string m_sFullPath; 00057 UT_sint64 m_iSize; 00058 ODc_CryptoInfo* m_pCryptoInfo; 00059 std::map<std::string, ODc_CryptoInfo>& m_cryptoInfo; 00060 }; 00061 00062 #endif /*ODI_MANIFESTSTREAM_LISTENERSTATE_H_*/