filters

msodimport.h

00001 /*
00002     Copyright (C) 2000, S.R.Haque <shaheedhaque@hotmail.com>.
00003     This file is part of the KDE project
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 
00020 DESCRIPTION
00021 */
00022 
00023 #ifndef MSODIMPORT_H
00024 #define MSODIMPORT_H
00025 
00026 #include <KoFilter.h>
00027 #include <msod.h>
00028 
00029 class MSODImport :
00030     public KoEmbeddingFilter, protected Msod
00031 {
00032     Q_OBJECT
00033 
00034 public:
00035     MSODImport(
00036         KoFilter *parent,
00037         const char *name,
00038         const QStringList&);
00039     virtual ~MSODImport();
00040 
00041     virtual KoFilter::ConversionStatus convert( const QCString& from, const QCString& to );
00042 
00043 protected:
00044 
00045     virtual void gotEllipse(
00046         const DrawContext &dc,
00047         QString type,
00048         QPoint topLeft,
00049         QSize halfAxes,
00050         unsigned startAngle,
00051         unsigned stopAngle);
00052     virtual void gotPicture(
00053         unsigned id,
00054         QString extension,
00055         unsigned length,
00056         const char *data);
00057     virtual void gotPolygon(
00058         const DrawContext &dc,
00059         const QPointArray &points);
00060     virtual void gotPolyline(
00061         const DrawContext &dc,
00062         const QPointArray &points);
00063     virtual void gotRectangle(
00064         const DrawContext &dc,
00065         const QPointArray &points);
00066 
00067 signals:
00068     // Communication signals to the parent filters
00069     void commSignalDelayStream( const char* delay );
00070     void commSignalShapeID( unsigned int& shapeID );
00071 
00072 private:
00073     virtual void savePartContents( QIODevice* file );
00074 
00075     // Debug support.
00076     static const int s_area;
00077 
00078     void pointArray(
00079         const QPointArray &points);
00080     QString m_text;
00081 
00082     // Embedded objects.
00083     const char* m_embeddeeData;
00084     int m_embeddeeLength;
00085 };
00086 
00087 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys