filters

graphicshandler.h

00001 /* This file is part of the KOffice project
00002    Copyright (C) 2003 Werner Trobin <trobin@kde.org>
00003    Copyright (C) 2003 David Faure <faure@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
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef GRAPHICSHANDLER_H
00021 #define GRAPHICSHANDLER_H
00022 
00023 #include <wv2/functor.h>
00024 #include <wv2/handlers.h>
00025 
00026 #include <qobject.h>
00027 #include "document.h"
00028 #include "versionmagic.h"
00029 
00030 #ifndef IMAGE_IMPORT
00031 namespace wvWare
00032 {
00033     class PictureHandler
00034     {
00035     };
00036 }
00037 #endif // IMAGE_IMPORT
00038 
00039 class KWordPictureHandler : public QObject, public wvWare::PictureHandler
00040 {
00041     Q_OBJECT
00042 public:
00043     KWordPictureHandler( Document* doc );
00044 
00045 #ifdef IMAGE_IMPORT
00047     virtual void bitmapData( wvWare::OLEImageReader& reader, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
00048     virtual void wmfData( wvWare::OLEImageReader& reader, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
00049     virtual void tiffData( const wvWare::UString& name, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
00050 #endif // IMAGE_IMPORT
00051 
00052 private:
00053     Document* m_doc;
00054 
00055 };
00056 
00057 // KWordDrawingHandler yet to come (Werner)
00058 
00059 #endif // GRAPHICSHANDLER_H
KDE Home | KDE Accessibility Home | Description of Access Keys