filters
msodimport.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
00069 void commSignalDelayStream( const char* delay );
00070 void commSignalShapeID( unsigned int& shapeID );
00071
00072 private:
00073 virtual void savePartContents( QIODevice* file );
00074
00075
00076 static const int s_area;
00077
00078 void pointArray(
00079 const QPointArray &points);
00080 QString m_text;
00081
00082
00083 const char* m_embeddeeData;
00084 int m_embeddeeLength;
00085 };
00086
00087 #endif
|