filters

kword13frameset.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 _FILTER_KWORD_1_3__KWORDFRAMESET_H
00022 #define _FILTER_KWORD_1_3__KWORDFRAMESET_H
00023 
00024 class QString;
00025 class QTextStream;
00026 
00027 #include <qstring.h>
00028 #include <qmap.h>
00029 
00030 #include "kword13paragraph.h"
00031 
00032 class KWord13Frameset
00033 {
00034 public:
00035     KWord13Frameset( int frameType, int frameInfo, const QString& name );
00036     virtual ~KWord13Frameset( void );
00037 public:
00038     virtual bool addParagraph(const KWord13Paragraph& para);
00039     virtual bool setKey( const QString& key );
00040     virtual void xmldump( QTextStream& iostream );
00041 public:
00042     int m_numFrames; 
00043     QMap<QString,QString> m_frameData; 
00044 protected:
00045     int m_frameType;
00046     int m_frameInfo;
00047     QString m_name; 
00048 };
00049 
00050 class KWordTextFrameset : public KWord13Frameset
00051 {
00052 public:
00053     KWordTextFrameset( int frameType, int frameInfo, const QString& name );
00054     virtual ~KWordTextFrameset( void );
00055 public:
00056     virtual bool addParagraph(const KWord13Paragraph& para);
00057     virtual void xmldump( QTextStream& iostream );
00058 public:
00059     KWord13ParagraphGroup m_paragraphGroup;
00060 };
00061 
00062 class KWord13PictureFrameset : public KWord13Frameset
00063 {
00064 public:
00065     KWord13PictureFrameset( int frameType, int frameInfo, const QString& name );
00066     virtual ~KWord13PictureFrameset( void );
00067 public:
00068     virtual bool setKey( const QString& key );
00069     virtual void xmldump( QTextStream& iostream );
00070 public:
00071     QString m_pictureKey;
00072 };
00073 
00074 #endif // _FILTER_KWORD_1_3__KWORDFRAMESET_H
KDE Home | KDE Accessibility Home | Description of Access Keys