filters

msodimport.h
1/*
2 Copyright (C) 2000, S.R.Haque <shaheedhaque@hotmail.com>.
3 This file is part of the KDE project
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library 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 GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19
20DESCRIPTION
21*/
22
23#ifndef MSODIMPORT_H
24#define MSODIMPORT_H
25
26#include <KoFilter.h>
27#include <msod.h>
28
29class MSODImport :
30 public KoEmbeddingFilter, protected Msod
31{
32 TQ_OBJECT
33
34
35public:
36 MSODImport(
37 KoFilter *parent,
38 const char *name,
39 const TQStringList&);
40 virtual ~MSODImport();
41
42 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
43
44protected:
45
46 virtual void gotEllipse(
47 const DrawContext &dc,
48 TQString type,
49 TQPoint topLeft,
50 TQSize halfAxes,
51 unsigned startAngle,
52 unsigned stopAngle);
53 virtual void gotPicture(
54 unsigned id,
55 TQString extension,
56 unsigned length,
57 const char *data);
58 virtual void gotPolygon(
59 const DrawContext &dc,
60 const TQPointArray &points);
61 virtual void gotPolyline(
62 const DrawContext &dc,
63 const TQPointArray &points);
64 virtual void gotRectangle(
65 const DrawContext &dc,
66 const TQPointArray &points);
67
68signals:
69 // Communication signals to the parent filters
70 void commSignalDelayStream( const char* delay );
71 void commSignalShapeID( unsigned int& shapeID );
72
73private:
74 virtual void savePartContents( TQIODevice* file );
75
76 // Debug support.
77 static const int s_area;
78
79 void pointArray(
80 const TQPointArray &points);
81 TQString m_text;
82
83 // Embedded objects.
84 const char* m_embeddeeData;
85 int m_embeddeeLength;
86};
87
88#endif