/* This file is part of the KDE project Copyright (C) 2004 Nicolas GOUTTE 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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef KWORD_1_3_DOCUMENT_H #define KWORD_1_3_DOCUMENT_H class TQIODevice; class KTempFile; class KWord13Picture; #include #include #include #include #include #include #include "kword13frameset.h" class KWord13Document { public: KWord13Document( void ); ~KWord13Document( void ); public: void xmldump( TQIODevice* io ); /// Get the "last printed" date/time TQDateTime lastPrintingDate( void ) const; /// Get the "creation" date/time TQDateTime creationDate( void ) const; /// Get the "modification" date/time TQDateTime modificationDate( void ) const; /** * Get a document info * \param name name of the document info */ TQString getDocumentInfo( const TQString& name ) const; /** * Get a document property * \param name name of the property * \param oldName alternative name of the property (in old KWord syntax) */ TQString getProperty( const TQString& name, const TQString& oldName = TQString() ) const; protected: /// Get a document property \internal TQString getPropertyInternal( const TQString& name ) const; public: TQMap m_documentProperties; TQMap m_documentInfo; ///< From documentinfo.xml TQValueList m_styles; TQPtrList m_normalTextFramesetList; ///< List of \ having normal text TQPtrList m_tableFramesetList; ///< List of \ being part of tables TQPtrList m_headerFooterFramesetList; ///< List of \ having footer/header TQPtrList m_footEndNoteFramesetList; ///< List of \ having footnotes or endnotes TQPtrList m_pictureFramesetList; ///< List of \ having pictures TQPtrList m_otherFramesetList; ///< List of \ of other types TQDict m_pictureDict; ///< "Dictionnary" of all pictures' data KTempFile* m_previewFile; TQStringList m_anchoredFramesetNames; ///< List of framesets that are anchored }; #endif // KWORD_1_3_DOCUMENT_H