/*************************************************************************** * Copyright (C) 2006 by Tobias Koenig * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef OOO_DOCUMENT_H #define OOO_DOCUMENT_H #include #include #include #include "manifest.h" namespace OOO { class Document { public: Document( const QString &fileName ); ~Document(); bool open( const QString &password ); QString lastErrorString() const; QByteArray content() const; QByteArray meta() const; QByteArray styles() const; QMap images() const; bool anyFileEncrypted() const; private: void setError( const QString& ); QString mFileName; QByteArray mContent; QByteArray mMeta; QByteArray mStyles; QMap mImages; Manifest *mManifest; QString mErrorString; bool mAnyEncrypted; }; } #endif