kword

KWOasisLoader.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2005 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KWOASISLOADER_H
00020 #define KWOASISLOADER_H
00021 
00022 class KoPoint;
00023 class KWTableFrameSet;
00024 class KWLoadingInfo;
00025 class KoOasisContext;
00026 class QDomDocument;
00027 class KoOasisSettings;
00028 class QDomElement;
00029 class KWFrame;
00030 class KoStore;
00031 class KoTextCursor;
00032 class KWDocument;
00033 template <class T> class QValueList;
00034 
00035 // KWDocument delegates to this class the loading of OASIS documents or fragments
00036 class KWOasisLoader
00037 {
00038 public:
00039     KWOasisLoader( KWDocument* doc );
00040 
00044     QValueList<KWFrame *> insertOasisData( KoStore* store, KoTextCursor* cursor );
00045 
00046     void loadOasisSettings( const QDomDocument&settingsDoc );
00047     void loadOasisHeaderFooter( const QDomElement& headerFooter, bool hasEvenOdd,
00048                                 QDomElement& style, KoOasisContext& context );
00049 
00050     KWFrame* loadFrame( const QDomElement& frameTag, KoOasisContext& context, const KoPoint& offset );
00051     KWFrame* loadOasisTextBox( const QDomElement& frame, const QDomElement& tag,
00052                                KoOasisContext& context );
00053     KWTableFrameSet* loadOasisTable( const QDomElement& tag,
00054                                      KoOasisContext& context );
00055 
00056 private:
00057     void loadOasisIgnoreList( const KoOasisSettings& settings );
00058 
00059 private:
00060     KWDocument* m_doc;
00061 };
00062 
00063 
00064 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys