kword13frameset.h
1/*
2 This file is part of the KDE project
3 Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef _FILTER_KWORD_1_3__KWORDFRAMESET_H
22#define _FILTER_KWORD_1_3__KWORDFRAMESET_H
23
24class TQString;
25class TQTextStream;
26
27#include <tqstring.h>
28#include <tqmap.h>
29
30#include "kword13paragraph.h"
31
32class KWord13Frameset
33{
34public:
35 KWord13Frameset( int frameType, int frameInfo, const TQString& name );
36 virtual ~KWord13Frameset( void );
37public:
38 virtual bool addParagraph(const KWord13Paragraph& para);
39 virtual bool setKey( const TQString& key );
40 virtual void xmldump( TQTextStream& iostream );
41public:
42 int m_numFrames;
43 TQMap<TQString,TQString> m_frameData;
44protected:
45 int m_frameType;
46 int m_frameInfo;
47 TQString m_name;
48};
49
50class KWordTextFrameset : public KWord13Frameset
51{
52public:
53 KWordTextFrameset( int frameType, int frameInfo, const TQString& name );
54 virtual ~KWordTextFrameset( void );
55public:
56 virtual bool addParagraph(const KWord13Paragraph& para);
57 virtual void xmldump( TQTextStream& iostream );
58public:
59 KWord13ParagraphGroup m_paragraphGroup;
60};
61
62class KWord13PictureFrameset : public KWord13Frameset
63{
64public:
65 KWord13PictureFrameset( int frameType, int frameInfo, const TQString& name );
66 virtual ~KWord13PictureFrameset( void );
67public:
68 virtual bool setKey( const TQString& key );
69 virtual void xmldump( TQTextStream& iostream );
70public:
71 TQString m_pictureKey;
72};
73
74#endif // _FILTER_KWORD_1_3__KWORDFRAMESET_H
Group of paragraphs (Mostly all paragraphs of a text frameset)