KoWmfRead Class Reference
KoWmfRead allows the redirection of the actions stored in a WMF file. More...
#include <kowmfread.h>
Inheritance diagram for KoWmfRead:


Public Member Functions | |
virtual bool | load (const QString &fileName) |
virtual bool | load (const QByteArray &array) |
virtual bool | play () |
bool | isStandard (void) const |
bool | isPlaceable (void) const |
bool | isEnhanced (void) const |
bool | isValid (void) const |
virtual QRect | boundingRect (void) const |
int | defaultDpi (void) const |
void | setDebug (int nbFunc) |
virtual bool | begin ()=0 |
virtual bool | end ()=0 |
virtual void | save ()=0 |
virtual void | restore ()=0 |
virtual void | setFont (const QFont &)=0 |
virtual void | setPen (const QPen &p)=0 |
virtual const QPen & | pen () const =0 |
virtual void | setBrush (const QBrush &)=0 |
virtual void | setBackgroundColor (const QColor &)=0 |
virtual void | setBackgroundMode (Qt::BGMode)=0 |
virtual void | setRasterOp (Qt::RasterOp)=0 |
virtual void | setWindowOrg (int left, int top)=0 |
virtual void | setWindowExt (int width, int height)=0 |
virtual void | setClipRegion (const QRegion &)=0 |
virtual QRegion | clipRegion ()=0 |
virtual void | moveTo (int x, int y)=0 |
virtual void | lineTo (int x, int y)=0 |
virtual void | drawRect (int x, int y, int w, int h)=0 |
virtual void | drawRoundRect (int x, int y, int w, int h, int=25, int=25)=0 |
virtual void | drawEllipse (int x, int y, int w, int h)=0 |
virtual void | drawArc (int x, int y, int w, int h, int a, int alen)=0 |
virtual void | drawPie (int x, int y, int w, int h, int a, int alen)=0 |
virtual void | drawChord (int x, int y, int w, int h, int a, int alen)=0 |
virtual void | drawPolyline (const QPointArray &pa)=0 |
virtual void | drawPolygon (const QPointArray &pa, bool winding=FALSE)=0 |
virtual void | drawPolyPolygon (QPtrList< QPointArray > &listPa, bool winding=FALSE)=0 |
virtual void | drawImage (int x, int y, const QImage &, int sx=0, int sy=0, int sw=-1, int sh=-1)=0 |
virtual void | drawText (int x, int y, int w, int h, int flags, const QString &s, double rotation)=0 |
virtual void | setWorldMatrix (const QWMatrix &, bool combine=FALSE)=0 |
Detailed Description
KoWmfRead allows the redirection of the actions stored in a WMF file.Most of the virtuals functions are compatible with QPainter format.
How to use : inherit this class and define abstract functions then create an object and call load() and play()
Definition at line 45 of file kowmfread.h.
Member Function Documentation
|
Load WMF file. Returns true on success. Definition at line 34 of file kowmfread.cc. References KoWmfReadPrivate::load(). |
|
play the WMF file => call virtuals functions
Definition at line 57 of file kowmfread.cc. References KoWmfReadPrivate::play(). Referenced by KoWmfPaint::play(). |
|
Returns true if the metafile is standard / placeable / enhanced / valid.
Definition at line 68 of file kowmfread.cc. References KoWmfReadPrivate::mStandard. |
|
Returns the bounding rectangle Standard Meta File : return the bounding box from setWindowOrg and setWindowExt (slow) Placeable Meta File : return the bounding box from header always in logical coordinate.
Definition at line 83 of file kowmfread.cc. References KoWmfReadPrivate::mBBox. |
|
Returns the default DotPerInch for placeable meta file, return 0 for Standard meta file.
Definition at line 88 of file kowmfread.cc. References KoWmfReadPrivate::mDpi, and KoWmfReadPrivate::mPlaceable. |
|
Activate debug mode. nbFunc : number of functions to draw nbFunc!=0 switch to debug mode with trace Definition at line 98 of file kowmfread.cc. References KoWmfReadPrivate::mNbrFunc. |
The documentation for this class was generated from the following files: