F:/KPlato/koffice/libs/kofficecore/KoOasisStore.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2005 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017 */
00018 #ifndef KOOASISSTORE_H
00019 #define KOOASISSTORE_H
00020 
00021 #include <KoXmlReader.h>
00022 
00023 class QString;
00024 class QDomDocument;
00025 class KTemporaryFile;
00026 class KoXmlWriter;
00027 class KoStore;
00028 class KoStoreDevice;
00029 class QIODevice;
00030 
00051 #include <koffice_export.h>
00052 
00053 class KOFFICECORE_EXPORT KoOasisStore
00054 {
00055 public:
00057     KoOasisStore( KoStore* store );
00058 
00059     ~KoOasisStore();
00060 
00061     KoStore* store() const { return m_store; }
00062 
00064     KoXmlWriter* contentWriter();
00065 
00068     KoXmlWriter* bodyWriter();
00069 
00073     bool closeContentWriter();
00074 
00075     // For other files in the store, use open/addManifestEntry/KoStoreDevice/createOasisXmlWriter/close
00076 
00078     KoXmlWriter* manifestWriter( const char* mimeType );
00079 
00081     bool closeManifestWriter();
00082 
00084     bool loadAndParse( const QString& fileName, KoXmlDocument& doc, QString& errorMessage );
00085 
00087     static QString mimeForPath( const KoXmlDocument& doc, const QString& fullPath );
00088 
00089 private:
00090     KoStore* m_store;
00091     KoStoreDevice* m_storeDevice;
00092     KoXmlWriter* m_contentWriter;
00093     KoXmlWriter* m_bodyWriter;
00094     KoXmlWriter* m_manifestWriter;
00095     KTemporaryFile* m_contentTmpFile;
00096 };
00097 
00098 #endif /* KOOASISSTORE_H */

Généré le Wed Nov 22 23:41:03 2006 pour KPlato par  doxygen 1.5.1-p1