lib

KoWmfRead Class Referenceabstract

#include <kowmfread.h>

Inheritance diagram for KoWmfRead:
KoWmfPaint

Public Member Functions

virtual bool load (const TQString &fileName)
virtual bool load (const TQByteArray &array)
virtual bool play ()
bool isStandard (void) const
bool isPlaceable (void) const
bool isEnhanced (void) const
bool isValid (void) const
virtual TQRect 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 TQFont &)=0
virtual void setPen (const TQPen &p)=0
virtual const TQPen & pen () const =0
virtual void setBrush (const TQBrush &)=0
virtual void setBackgroundColor (const TQColor &)=0
virtual void setBackgroundMode (TQt::BGMode)=0
virtual void setRasterOp (TQt::RasterOp)=0
virtual void setWindowOrg (int left, int top)=0
virtual void setWindowExt (int width, int height)=0
virtual void setClipRegion (const TQRegion &)=0
virtual TQRegion 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 TQPointArray &pa)=0
virtual void drawPolygon (const TQPointArray &pa, bool winding=false)=0
virtual void drawPolyPolygon (TQPtrList< TQPointArray > &listPa, bool winding=false)=0
virtual void drawImage (int x, int y, const TQImage &, 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 TQString &s, double rotation)=0
virtual void setWorldMatrix (const TQWMatrix &, 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 TQPainter format.

How to use : inherit this class and define abstract functions then create an object and call load() and play()

Definition at line 46 of file kowmfread.h.

Constructor & Destructor Documentation

◆ KoWmfRead()

KoWmfRead::KoWmfRead ( )

Definition at line 25 of file kowmfread.cpp.

◆ ~KoWmfRead()

KoWmfRead::~KoWmfRead ( )
virtual

Definition at line 29 of file kowmfread.cpp.

Member Function Documentation

◆ boundingRect()

TQRect 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.cpp.

◆ defaultDpi()

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.cpp.

◆ isEnhanced()

bool KoWmfRead::isEnhanced ( void ) const

Definition at line 78 of file kowmfread.cpp.

◆ isPlaceable()

bool KoWmfRead::isPlaceable ( void ) const

Definition at line 73 of file kowmfread.cpp.

◆ isStandard()

bool KoWmfRead::isStandard ( void ) const

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

Definition at line 68 of file kowmfread.cpp.

◆ isValid()

bool KoWmfRead::isValid ( void ) const

Definition at line 63 of file kowmfread.cpp.

◆ load() [1/2]

bool KoWmfRead::load ( const TQByteArray & array)
virtual

Definition at line 51 of file kowmfread.cpp.

◆ load() [2/2]

bool KoWmfRead::load ( const TQString & fileName)
virtual

Load WMF file.

Returns true on success.

Definition at line 34 of file kowmfread.cpp.

◆ play()

bool KoWmfRead::play ( )
virtual

play the WMF file => call virtuals functions

Definition at line 57 of file kowmfread.cpp.

◆ setDebug()

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.cpp.


The documentation for this class was generated from the following files: