File indexing completed on 2024-12-01 13:11:47
0001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ 0002 /* writerperfect 0003 * Version: MPL 2.0 / LGPLv2.1+ 0004 * 0005 * This Source Code Form is subject to the terms of the Mozilla Public 0006 * License, v. 2.0. If a copy of the MPL was not distributed with this 0007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 0008 * 0009 * Major Contributor(s): 0010 * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch) 0011 * 0012 * For minor contributions see the git repository. 0013 * 0014 * Alternatively, the contents of this file may be used under the terms 0015 * of the GNU Lesser General Public License Version 2.1 or later 0016 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are 0017 * applicable instead of those above. 0018 * 0019 * For further information visit http://libwpd.sourceforge.net 0020 */ 0021 0022 #ifndef _OUTPUTFILEHELPER_HXX 0023 #define _OUTPUTFILEHELPER_HXX 0024 0025 #include <librevenge-stream/librevenge-stream.h> 0026 #include <libodfgen/libodfgen.hxx> 0027 0028 struct OutputFileHelperImpl; 0029 0030 class OutputFileHelper 0031 { 0032 public: 0033 OutputFileHelper(const char *outFileName, const char *password); 0034 virtual ~OutputFileHelper(); 0035 0036 bool writeChildFile(const char *childFileName, const char *str); 0037 bool writeChildFile(const char *childFileName, const char *str, const char compression_level); 0038 0039 private: 0040 OutputFileHelperImpl *m_impl; 0041 0042 private: 0043 OutputFileHelper(OutputFileHelper const &); 0044 OutputFileHelper &operator=(OutputFileHelper const &); 0045 }; 0046 0047 #endif 0048 0049 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */