lib Library API Documentation

KoWmfRead Class Reference

KoWmfRead allows the redirection of the actions stored in a WMF file. More...

#include <kowmfread.h>

Inheritance diagram for KoWmfRead:

Inheritance graph
[legend]
Collaboration diagram for KoWmfRead:

Collaboration graph
[legend]
List of all members.

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 QPenpen () 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

bool KoWmfRead::load const QString fileName  )  [virtual]
 

Load WMF file.

Returns true on success.

Definition at line 34 of file kowmfread.cc.

References KoWmfReadPrivate::load().

bool KoWmfRead::play  )  [virtual]
 

play the WMF file => call virtuals functions

Definition at line 57 of file kowmfread.cc.

References KoWmfReadPrivate::play().

Referenced by KoWmfPaint::play().

bool KoWmfRead::isStandard void   )  const
 

Returns true if the metafile is standard / placeable / enhanced / valid.

Definition at line 68 of file kowmfread.cc.

References KoWmfReadPrivate::mStandard.

QRect KoWmfRead::boundingRect void   )  const [virtual]
 

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.

int KoWmfRead::defaultDpi void   )  const
 

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.

void KoWmfRead::setDebug int  nbFunc  ) 
 

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:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:50:40 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003