kword

KWOasisLoader.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KWOASISLOADER_H
20#define KWOASISLOADER_H
21
22class KoPoint;
23class KWTableFrameSet;
24class KWLoadingInfo;
25class KoOasisContext;
26class TQDomDocument;
27class KoOasisSettings;
28class TQDomElement;
29class KWFrame;
30class KoStore;
31class KoTextCursor;
32class KWDocument;
33template <class T> class TQValueList;
34
35// KWDocument delegates to this class the loading of OASIS documents or fragments
36class KWOasisLoader
37{
38public:
39 KWOasisLoader( KWDocument* doc );
40
44 TQValueList<KWFrame *> insertOasisData( KoStore* store, KoTextCursor* cursor );
45
46 void loadOasisSettings( const TQDomDocument&settingsDoc );
47 void loadOasisHeaderFooter( const TQDomElement& headerFooter, bool hasEvenOdd,
48 TQDomElement& style, KoOasisContext& context );
49
50 KWFrame* loadFrame( const TQDomElement& frameTag, KoOasisContext& context, const KoPoint& offset );
51 KWFrame* loadOasisTextBox( const TQDomElement& frame, const TQDomElement& tag,
52 KoOasisContext& context );
53 KWTableFrameSet* loadOasisTable( const TQDomElement& tag,
54 KoOasisContext& context );
55
56private:
57 void loadOasisIgnoreList( const KoOasisSettings& settings );
58
59private:
60 KWDocument* m_doc;
61};
62
63
64#endif
This class represents a single frame.
Definition KWFrame.h:68
Temporary information used only during loading.
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...