filters

kword13document.h

00001 /*
00002    This file is part of the KDE project
00003    Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
00004 
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License
00007    as published by the Free Software Foundation; either version 2
00008    of the License, or (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KWORD_1_3_DOCUMENT_H
00022 #define KWORD_1_3_DOCUMENT_H
00023 
00024 class QIODevice;
00025 class KTempFile;
00026 class KWord13Picture;
00027 
00028 #include <qstring.h>
00029 #include <qmap.h>
00030 #include <qptrlist.h>
00031 #include <qdatetime.h>
00032 #include <qdict.h>
00033 #include <qstringlist.h>
00034 
00035 #include "kword13frameset.h"
00036 
00037 class KWord13Document
00038 {
00039 public:
00040     KWord13Document( void );
00041     ~KWord13Document( void );
00042     
00043 public:
00044     void xmldump( QIODevice* io );
00046     QDateTime lastPrintingDate( void ) const;
00048     QDateTime creationDate( void ) const;
00050     QDateTime modificationDate( void ) const;
00055     QString getDocumentInfo( const QString& name ) const;
00061     QString getProperty( const QString& name, const QString& oldName = QString::null ) const;
00062 protected:
00064     QString getPropertyInternal( const QString& name ) const;
00065 public:
00066     QMap<QString, QString> m_documentProperties;
00067     QMap<QString, QString> m_documentInfo; 
00068     QValueList<KWord13Layout> m_styles;
00069     QPtrList<KWordTextFrameset> m_normalTextFramesetList; 
00070     QPtrList<KWordTextFrameset> m_tableFramesetList; 
00071     QPtrList<KWordTextFrameset> m_headerFooterFramesetList; 
00072     QPtrList<KWordTextFrameset> m_footEndNoteFramesetList; 
00073     QPtrList<KWord13PictureFrameset> m_pictureFramesetList; 
00074     QPtrList<KWord13Frameset> m_otherFramesetList; 
00075     QDict<KWord13Picture> m_pictureDict; 
00076     KTempFile* m_previewFile;
00077     QStringList m_anchoredFramesetNames; 
00078 };
00079 
00080 #endif // KWORD_1_3_DOCUMENT_H
KDE Home | KDE Accessibility Home | Description of Access Keys