filters

graphicshandler.h
1/* This file is part of the KOffice project
2 Copyright (C) 2003 Werner Trobin <trobin@kde.org>
3 Copyright (C) 2003 David Faure <faure@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
7 License version 2 as published by the Free Software Foundation.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef GRAPHICSHANDLER_H
21#define GRAPHICSHANDLER_H
22
23#include <wv2/functor.h>
24#include <wv2/handlers.h>
25
26#include <tqobject.h>
27#include "document.h"
28#include "versionmagic.h"
29
30#ifndef IMAGE_IMPORT
31namespace wvWare
32{
33 class PictureHandler
34 {
35 };
36}
37#endif // IMAGE_IMPORT
38
39class KWordPictureHandler : public TQObject, public wvWare::PictureHandler
40{
41 TQ_OBJECT
42
43public:
44 KWordPictureHandler( Document* doc );
45
46#ifdef IMAGE_IMPORT
48 virtual void bitmapData( wvWare::OLEImageReader& reader, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
49 virtual void wmfData( wvWare::OLEImageReader& reader, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
50 virtual void tiffData( const wvWare::UString& name, wvWare::SharedPtr<const wvWare::Word97::PICF> picf );
51#endif // IMAGE_IMPORT
52
53private:
54 Document* m_doc;
55
56};
57
58// KWordDrawingHandler yet to come (Werner)
59
60#endif // GRAPHICSHANDLER_H