18#ifndef _WMFIMPORTPARSER_H_
19#define _WMFIMPORTPARSER_H_
23#include <core/vdocument.h>
24#include <core/vcomposite.h>
34class WMFImportParser : public KoWmfRead
38 ~WMFImportParser() { }
43 bool play( VDocument& doc );
55 void setFont( const TQFont &font );
57 void setPen( const TQPen &pen );
58 const TQPen &pen() const;
59 void setBrush( const TQBrush &brush );
62 void setBackgroundColor( const TQColor &c );
63 void setBackgroundMode( TQt::BGMode mode );
64 void setRasterOp( TQt::RasterOp op );
72 void setWindowOrg( int left, int top );
73 void setWindowExt( int width, int height );
78 void setClipRegion( const TQRegion &rec );
79 TQRegion clipRegion();
82 void moveTo( int x, int y );
83 void lineTo( int x, int y );
84 void drawRect( int x, int y, int w, int h );
85 void drawRoundRect( int x, int y, int w, int h, int = 25, int = 25 );
86 void drawEllipse( int x, int y, int w, int h );
87 void drawArc( int x, int y, int w, int h, int a, int alen );
88 void drawPie( int x, int y, int w, int h, int a, int alen );
89 void drawChord( int x, int y, int w, int h, int a, int alen );
90 void drawPolyline( const TQPointArray &pa );
91 void drawPolygon( const TQPointArray &pa, bool winding= false );
96 void drawPolyPolygon( TQPtrList<TQPointArray>& listPa, bool winding= false );
97 void drawImage( int x, int y, const TQImage &, int sx = 0, int sy = 0, int sw = -1, int sh = -1 );
102 void drawText( int x, int y, int w, int h, int flags, const TQString &s, double rotation );
105 void setWorldMatrix( const TQWMatrix &, bool combine= false );
110 void appendPen( VObject& obj );
111 void appendBrush( VObject& obj );
112 void appendPoints(VPath& path, const TQPointArray& pa);
117 double coordX( int left )
118 { return (( double)(left - mCurrentOrg.x()) * mScaleX); }
119 double coordY( int top )
120 { return (mDoc->height() - (( double)(top - mCurrentOrg.y()) * mScaleY)); }
121 double scaleW( int width )
122 { return (width * mScaleX); }
123 double scaleH( int height )
124 { return (height * mScaleY); }
128 TQRegion mClippingRegion;
131 TQt::BGMode mBackgroundMode;
132 TQColor mBackgroundColor;
138 TQPoint mCurrentPoint;
bool play(VDocument &doc) play WMF file on a VDocument.
|