00001 /* AbiSource 00002 * 00003 * Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com> 00004 * Copyright (C) 2004 Robert Staudinger <robsta@stereolyzer.net> 00005 * 00006 * Copyright (C) 2005 INdT 00007 * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br> 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * as published by the Free Software Foundation; either version 2 00012 * of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00022 * 02110-1301 USA. 00023 */ 00024 00025 00026 00027 00028 00029 00030 #ifndef _ODE_MANIFESTWRITER_H_ 00031 #define _ODE_MANIFESTWRITER_H_ 00032 00033 // External includes 00034 #include <gsf/gsf.h> 00035 #include <set> 00036 00037 // Abiword classes 00038 class PD_Document; 00039 00044 class ODe_ManifestWriter 00045 { 00046 public: 00047 00048 static bool writeManifest(PD_Document* pDoc, GsfOutfile* pODT); 00049 00050 private: 00051 ODe_ManifestWriter (); 00052 static void ensureDirectoryManifest( PD_Document* pDoc, 00053 GsfOutput* manifest, 00054 const std::string& path, 00055 std::set< std::string >& pathsAlreadyWritten ); 00056 }; 00057 00058 00059 #endif //_ODE_MANIFESTWRITER_H_