diff options
Diffstat (limited to 'lib/kwmf/kwmf.h')
-rw-r--r-- | lib/kwmf/kwmf.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/lib/kwmf/kwmf.h b/lib/kwmf/kwmf.h index 4f1b050a..e3afe5e5 100644 --- a/lib/kwmf/kwmf.h +++ b/lib/kwmf/kwmf.h @@ -30,10 +30,10 @@ DESCRIPTION #ifndef KWMF_H #define KWMF_H -#include <qvaluestack.h> +#include <tqvaluestack.h> #include <koffice_export.h> -class QDataStream; -class QPointArray; +class TQDataStream; +class TQPointArray; class KOWMF_EXPORT KWmf { @@ -48,9 +48,9 @@ public: // Called to parse the given file. bool parse( - const QString &file); + const TQString &file); bool parse( - QDataStream &stream, + TQDataStream &stream, unsigned size); class KOWMF_EXPORT DrawContext @@ -80,20 +80,20 @@ protected: virtual void gotEllipse( const DrawContext &dc, - QString type, - QPoint topLeft, - QSize halfAxes, + TQString type, + TQPoint topLeft, + TQSize halfAxes, unsigned startAngle, unsigned stopAngle) = 0; virtual void gotPolygon( const DrawContext &dc, - const QPointArray &points) = 0; + const TQPointArray &points) = 0; virtual void gotPolyline( const DrawContext &dc, - const QPointArray &points) = 0; + const TQPointArray &points) = 0; virtual void gotRectangle( const DrawContext &dc, - const QPointArray &points) = 0; + const TQPointArray &points) = 0; private: // Debug support. @@ -112,8 +112,8 @@ private: int m_windowFlipX; int m_windowFlipY; DrawContext m_dc; - QValueStack<DrawContext> m_savedDcs; - QPoint m_lineFrom; + TQValueStack<DrawContext> m_savedDcs; + TQPoint m_lineFrom; // Windows handle management. @@ -149,71 +149,71 @@ private: WinObjHandle **m_objectHandles; unsigned getColour(S32 colour); - QPoint normalisePoint( - QDataStream &operands); - QSize normaliseSize( - QDataStream &operands); + TQPoint normalisePoint( + TQDataStream &operands); + TQSize normaliseSize( + TQDataStream &operands); void genericArc( - QString type, - QDataStream &operands); + TQString type, + TQDataStream &operands); // Opcode handling and painter methods. void walk( U32 words, - QDataStream &stream); + TQDataStream &stream); void skip( U32 words, - QDataStream &operands); + TQDataStream &operands); void invokeHandler( S16 opcode, U32 words, - QDataStream &operands); + TQDataStream &operands); /* // draw multiple polygons - void opPolypolygon(U32 words, QDataStream &operands); + void opPolypolygon(U32 words, TQDataStream &operands); */ - void opArc(U32 words, QDataStream &operands); + void opArc(U32 words, TQDataStream &operands); // create a logical brush - void opBrushCreateIndirect(U32 words, QDataStream &operands); - void opEllipse(U32 words, QDataStream &operands); + void opBrushCreateIndirect(U32 words, TQDataStream &operands); + void opEllipse(U32 words, TQDataStream &operands); // draw line to coord - void opLineTo(U32 words, QDataStream &operands); + void opLineTo(U32 words, TQDataStream &operands); // move pen to coord - void opMoveTo(U32 words, QDataStream &operands); + void opMoveTo(U32 words, TQDataStream &operands); // do nothing - void opNoop(U32 words, QDataStream &operands); + void opNoop(U32 words, TQDataStream &operands); // Free object handle - void opObjectDelete(U32 words, QDataStream &operands); + void opObjectDelete(U32 words, TQDataStream &operands); // Activate object handle - void opObjectSelect(U32 words, QDataStream &operands); + void opObjectSelect(U32 words, TQDataStream &operands); // create a logical pen - void opPenCreateIndirect(U32 words, QDataStream &operands); - void opPie(U32 words, QDataStream &operands); + void opPenCreateIndirect(U32 words, TQDataStream &operands); + void opPie(U32 words, TQDataStream &operands); // draw polygon - void opPolygon(U32 words, QDataStream &operands); + void opPolygon(U32 words, TQDataStream &operands); // set polygon fill mode - void opPolygonSetFillMode(U32 words, QDataStream &operands); + void opPolygonSetFillMode(U32 words, TQDataStream &operands); // draw series of lines - void opPolyline(U32 words, QDataStream &operands); - void opRectangle(U32 words, QDataStream &operands); + void opPolyline(U32 words, TQDataStream &operands); + void opRectangle(U32 words, TQDataStream &operands); // restore drawing context - void opRestoreDc(U32 words, QDataStream &operands); + void opRestoreDc(U32 words, TQDataStream &operands); // save drawing context - void opSaveDc(U32 words, QDataStream &operands); + void opSaveDc(U32 words, TQDataStream &operands); // set window origin - void opWindowSetOrg(U32 words, QDataStream &operands); + void opWindowSetOrg(U32 words, TQDataStream &operands); // set window extents - void opWindowSetExt(U32 words, QDataStream &operands); + void opWindowSetExt(U32 words, TQDataStream &operands); /* // set background pen color - void opsetBkColor(U32 words, QDataStream &operands); + void opsetBkColor(U32 words, TQDataStream &operands); // set background pen mode - void opsetBkMode(U32 words, QDataStream &operands); + void opsetBkMode(U32 words, TQDataStream &operands); // Set raster operation mode - void opsetRop(U32 words, QDataStream &operands); + void opsetRop(U32 words, TQDataStream &operands); // Escape (enhanced command set) - void opescape(U32 words, QDataStream &operands); + void opescape(U32 words, TQDataStream &operands); */ }; |