summaryrefslogtreecommitdiffstats
path: root/lib/kwmf/kowmfwrite.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kwmf/kowmfwrite.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kwmf/kowmfwrite.cc')
-rw-r--r--lib/kwmf/kowmfwrite.cc206
1 files changed, 103 insertions, 103 deletions
diff --git a/lib/kwmf/kowmfwrite.cc b/lib/kwmf/kowmfwrite.cc
index 1c553391..22a0d131 100644
--- a/lib/kwmf/kowmfwrite.cc
+++ b/lib/kwmf/kowmfwrite.cc
@@ -17,8 +17,8 @@
*/
#include <math.h>
-#include <qfile.h>
-#include <qdatastream.h>
+#include <tqfile.h>
+#include <tqdatastream.h>
#include <kdebug.h>
@@ -32,18 +32,18 @@
class KoWmfWritePrivate
{
public:
- QRect mBBox; // bounding rectangle
+ TQRect mBBox; // bounding rectangle
int mDpi; // number of point per inch for the default size
int mMaxRecordSize;
// memory allocation for WMF file
- QFile mFileOut;
- QDataStream mSt;
+ TQFile mFileOut;
+ TQDataStream mSt;
};
-KoWmfWrite::KoWmfWrite( const QString& fileName ) {
+KoWmfWrite::KoWmfWrite( const TQString& fileName ) {
d = new KoWmfWritePrivate;
d->mDpi = 1024;
@@ -68,26 +68,26 @@ bool KoWmfWrite::begin() {
if ( !d->mFileOut.open( IO_WriteOnly ) )
{
- kdDebug() << "Cannot open file " << QFile::encodeName(d->mFileOut.name()) << endl;
+ kdDebug() << "Cannot open file " << TQString(TQFile::encodeName(d->mFileOut.name())) << endl;
return false;
}
d->mSt.setDevice( &d->mFileOut );
- d->mSt.setByteOrder( QDataStream::LittleEndian );
+ d->mSt.setByteOrder( TQDataStream::LittleEndian );
// reserved placeable and standard header
for ( int i=0 ; i < 10 ; i++ ) {
- d->mSt << (Q_UINT32)0;
+ d->mSt << (TQ_UINT32)0;
}
// initialize the stack of objects
// Pen
- d->mSt << (Q_UINT32)8 << (Q_UINT16)0x02FA;
- d->mSt << (Q_UINT16)5 << (Q_UINT16)0 << (Q_UINT16)0 << (Q_UINT32)0;
+ d->mSt << (TQ_UINT32)8 << (TQ_UINT16)0x02FA;
+ d->mSt << (TQ_UINT16)5 << (TQ_UINT16)0 << (TQ_UINT16)0 << (TQ_UINT32)0;
// Brush
- d->mSt << (Q_UINT32)7 << (Q_UINT16)0x02FC;
- d->mSt << (Q_UINT16)1 << (Q_UINT32)0 << (Q_UINT16)0;
+ d->mSt << (TQ_UINT32)7 << (TQ_UINT16)0x02FC;
+ d->mSt << (TQ_UINT16)1 << (TQ_UINT32)0 << (TQ_UINT16)0;
for ( int i=0 ; i < 4 ; i++ ) {
- d->mSt << (Q_UINT32)8 << (Q_UINT16)0x02FA << (Q_UINT16)0 << (Q_UINT32)0 << (Q_UINT32)0;
+ d->mSt << (TQ_UINT32)8 << (TQ_UINT16)0x02FA << (TQ_UINT16)0 << (TQ_UINT32)0 << (TQ_UINT32)0;
}
d->mMaxRecordSize = 8;
@@ -97,10 +97,10 @@ bool KoWmfWrite::begin() {
bool KoWmfWrite::end() {
WmfPlaceableHeader pheader = { 0x9AC6CDD7, 0, 0, 0, 0, 0, 0, 0, 0 };
- Q_UINT16 checksum;
+ TQ_UINT16 checksum;
// End of the wmf file
- d->mSt << (Q_UINT32)3 << (Q_UINT16)0;
+ d->mSt << (TQ_UINT32)3 << (TQ_UINT16)0;
// adjust header
pheader.left = d->mBBox.left();
@@ -112,11 +112,11 @@ bool KoWmfWrite::end() {
// write headers
d->mFileOut.at( 0 );
- d->mSt << (Q_UINT32)0x9AC6CDD7 << (Q_UINT16)0;
- d->mSt << (Q_INT16)d->mBBox.left() << (Q_INT16)d->mBBox.top() << (Q_INT16)d->mBBox.right() << (Q_INT16)d->mBBox.bottom();
- d->mSt << (Q_UINT16)d->mDpi << (Q_UINT32)0 << checksum;
- d->mSt << (Q_UINT16)1 << (Q_UINT16)9 << (Q_UINT16)0x300 << (Q_UINT32)(d->mFileOut.size()/2);
- d->mSt << (Q_UINT16)6 << (Q_UINT32)d->mMaxRecordSize << (Q_UINT16)0;
+ d->mSt << (TQ_UINT32)0x9AC6CDD7 << (TQ_UINT16)0;
+ d->mSt << (TQ_INT16)d->mBBox.left() << (TQ_INT16)d->mBBox.top() << (TQ_INT16)d->mBBox.right() << (TQ_INT16)d->mBBox.bottom();
+ d->mSt << (TQ_UINT16)d->mDpi << (TQ_UINT32)0 << checksum;
+ d->mSt << (TQ_UINT16)1 << (TQ_UINT16)9 << (TQ_UINT16)0x300 << (TQ_UINT32)(d->mFileOut.size()/2);
+ d->mSt << (TQ_UINT16)6 << (TQ_UINT32)d->mMaxRecordSize << (TQ_UINT16)0;
d->mFileOut.close();
@@ -125,24 +125,24 @@ bool KoWmfWrite::end() {
void KoWmfWrite::save() {
- d->mSt << (Q_UINT32)3 << (Q_UINT16)0x001E;
+ d->mSt << (TQ_UINT32)3 << (TQ_UINT16)0x001E;
}
void KoWmfWrite::restore() {
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x0127 << (Q_UINT16)1;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x0127 << (TQ_UINT16)1;
}
-void KoWmfWrite::setPen( const QPen &pen ) {
+void KoWmfWrite::setPen( const TQPen &pen ) {
int style;
- int max = sizeof(koWmfStylePen) / sizeof(Qt::SolidLine);
+ int max = sizeof(koWmfStylePen) / sizeof(TQt::SolidLine);
// we can't delete an object currently selected
// select another object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x012D << (Q_UINT16)0;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x012D << (TQ_UINT16)0;
// delete object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x01f0 << (Q_UINT16)2;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x01f0 << (TQ_UINT16)2;
for ( style=0 ; style < max ; style++ ) {
if ( koWmfStylePen[ style ] == pen.style() ) break;
@@ -151,23 +151,23 @@ void KoWmfWrite::setPen( const QPen &pen ) {
// SolidLine
style = 0;
}
- d->mSt << (Q_UINT32)8 << (Q_UINT16)0x02FA;
- d->mSt << (Q_UINT16)style << (Q_UINT16)pen.width() << (Q_UINT16)0 << (Q_UINT32)winColor( pen.color() );
+ d->mSt << (TQ_UINT32)8 << (TQ_UINT16)0x02FA;
+ d->mSt << (TQ_UINT16)style << (TQ_UINT16)pen.width() << (TQ_UINT16)0 << (TQ_UINT32)winColor( pen.color() );
// select object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x012D << (Q_UINT16)2;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x012D << (TQ_UINT16)2;
}
-void KoWmfWrite::setBrush( const QBrush &brush ) {
+void KoWmfWrite::setBrush( const TQBrush &brush ) {
int style;
- int max = sizeof(koWmfStyleBrush) / sizeof(Qt::NoBrush);
+ int max = sizeof(koWmfStyleBrush) / sizeof(TQt::NoBrush);
// we can't delete an object currently selected
// select another object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x012D << (Q_UINT16)1;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x012D << (TQ_UINT16)1;
// delete object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x01f0 << (Q_UINT16)3;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x01f0 << (TQ_UINT16)3;
for ( style=0 ; style < max ; style++ ) {
if ( koWmfStyleBrush[ style ] == brush.style() ) break;
@@ -176,34 +176,34 @@ void KoWmfWrite::setBrush( const QBrush &brush ) {
// SolidPattern
style = 0;
}
- d->mSt << (Q_UINT32)7 << (Q_UINT16)0x02FC;
- d->mSt << (Q_UINT16)style << (Q_UINT32)winColor( brush.color() ) << (Q_UINT16)0;
+ d->mSt << (TQ_UINT32)7 << (TQ_UINT16)0x02FC;
+ d->mSt << (TQ_UINT16)style << (TQ_UINT32)winColor( brush.color() ) << (TQ_UINT16)0;
// select object
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x012D << (Q_UINT16)3;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x012D << (TQ_UINT16)3;
}
-void KoWmfWrite::setFont( const QFont & ) {
+void KoWmfWrite::setFont( const TQFont & ) {
}
-void KoWmfWrite::setBackgroundColor( const QColor &c ) {
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x0201 << (Q_UINT32)winColor( c );
+void KoWmfWrite::setBackgroundColor( const TQColor &c ) {
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x0201 << (TQ_UINT32)winColor( c );
}
void KoWmfWrite::setBackgroundMode( Qt::BGMode mode ) {
- d->mSt << (Q_UINT32)4 << (Q_UINT16)0x0102;
+ d->mSt << (TQ_UINT32)4 << (TQ_UINT16)0x0102;
if ( mode == Qt::TransparentMode )
- d->mSt << (Q_UINT16)1;
+ d->mSt << (TQ_UINT16)1;
else
- d->mSt << (Q_UINT16)0;
+ d->mSt << (TQ_UINT16)0;
}
-void KoWmfWrite::setRasterOp( Qt::RasterOp op ) {
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x0104 << (Q_UINT32)qtRasterToWin32( op );
+void KoWmfWrite::setRasterOp( TQt::RasterOp op ) {
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x0104 << (TQ_UINT32)qtRasterToWin32( op );
}
@@ -211,14 +211,14 @@ void KoWmfWrite::setWindow( int left, int top, int width, int height ) {
d->mBBox.setRect( left, top, width, height );
// windowOrg
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x020B << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x020B << (TQ_UINT16)top << (TQ_UINT16)left;
// windowExt
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x020C << (Q_UINT16)height << (Q_UINT16)width;
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x020C << (TQ_UINT16)height << (TQ_UINT16)width;
}
-void KoWmfWrite::setClipRegion( const QRegion & ) {
+void KoWmfWrite::setClipRegion( const TQRegion & ) {
}
@@ -232,43 +232,43 @@ void KoWmfWrite::clipping( bool enable ) {
void KoWmfWrite::moveTo( int left, int top ) {
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x0214 << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x0214 << (TQ_UINT16)top << (TQ_UINT16)left;
}
void KoWmfWrite::lineTo( int left, int top ) {
- d->mSt << (Q_UINT32)5 << (Q_UINT16)0x0213 << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)5 << (TQ_UINT16)0x0213 << (TQ_UINT16)top << (TQ_UINT16)left;
}
void KoWmfWrite::drawRect( int left, int top, int width, int height ) {
- QRect rec( left, top, width, height );
+ TQRect rec( left, top, width, height );
- d->mSt << (Q_UINT32)7 << (Q_UINT16)0x041B;
- d->mSt << (Q_UINT16)rec.bottom() << (Q_UINT16)rec.right() << (Q_UINT16)rec.top() << (Q_UINT16)rec.left();
+ d->mSt << (TQ_UINT32)7 << (TQ_UINT16)0x041B;
+ d->mSt << (TQ_UINT16)rec.bottom() << (TQ_UINT16)rec.right() << (TQ_UINT16)rec.top() << (TQ_UINT16)rec.left();
}
void KoWmfWrite::drawRoundRect( int left, int top, int width, int height , int roudw, int roudh ) {
int widthCorner, heightCorner;
- QRect rec( left, top, width, height );
+ TQRect rec( left, top, width, height );
// convert percentage (roundw, roudh) in (widthCorner, heightCorner)
widthCorner = ( roudw * width ) / 100;
heightCorner = ( roudh * height ) / 100;
- d->mSt << (Q_UINT32)9 << (Q_UINT16)0x061C << (Q_UINT16)heightCorner << (Q_UINT16)widthCorner;
- d->mSt << (Q_UINT16)rec.bottom() << (Q_UINT16)rec.right() << (Q_UINT16)rec.top() << (Q_UINT16)rec.left();
+ d->mSt << (TQ_UINT32)9 << (TQ_UINT16)0x061C << (TQ_UINT16)heightCorner << (TQ_UINT16)widthCorner;
+ d->mSt << (TQ_UINT16)rec.bottom() << (TQ_UINT16)rec.right() << (TQ_UINT16)rec.top() << (TQ_UINT16)rec.left();
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, 9 );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, 9 );
}
void KoWmfWrite::drawEllipse( int left, int top, int width, int height ) {
- QRect rec( left, top, width, height );
+ TQRect rec( left, top, width, height );
- d->mSt << (Q_UINT32)7 << (Q_UINT16)0x0418;
- d->mSt << (Q_UINT16)rec.bottom() << (Q_UINT16)rec.right() << (Q_UINT16)rec.top() << (Q_UINT16)rec.left();
+ d->mSt << (TQ_UINT32)7 << (TQ_UINT16)0x0418;
+ d->mSt << (TQ_UINT16)rec.bottom() << (TQ_UINT16)rec.right() << (TQ_UINT16)rec.top() << (TQ_UINT16)rec.left();
}
@@ -280,13 +280,13 @@ void KoWmfWrite::drawArc( int left, int top, int width, int height , int a, int
xCenter = left + (width / 2);
yCenter = top + (height / 2);
- d->mSt << (Q_UINT32)11 << (Q_UINT16)0x0817;
- d->mSt << (Q_UINT16)(yCenter + offYEnd) << (Q_UINT16)(xCenter + offXEnd);
- d->mSt << (Q_UINT16)(yCenter + offYStart) << (Q_UINT16)(xCenter + offXStart);
- d->mSt << (Q_UINT16)(top + height) << (Q_UINT16)(left + width);
- d->mSt << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)11 << (TQ_UINT16)0x0817;
+ d->mSt << (TQ_UINT16)(yCenter + offYEnd) << (TQ_UINT16)(xCenter + offXEnd);
+ d->mSt << (TQ_UINT16)(yCenter + offYStart) << (TQ_UINT16)(xCenter + offXStart);
+ d->mSt << (TQ_UINT16)(top + height) << (TQ_UINT16)(left + width);
+ d->mSt << (TQ_UINT16)top << (TQ_UINT16)left;
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, 11 );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, 11 );
}
@@ -298,13 +298,13 @@ void KoWmfWrite::drawPie( int left, int top, int width, int height , int a, int
xCenter = left + (width / 2);
yCenter = top + (height / 2);
- d->mSt << (Q_UINT32)11 << (Q_UINT16)0x081A;
- d->mSt << (Q_UINT16)(yCenter + offYEnd) << (Q_UINT16)(xCenter + offXEnd);
- d->mSt << (Q_UINT16)(yCenter + offYStart) << (Q_UINT16)(xCenter + offXStart);
- d->mSt << (Q_UINT16)(top + height) << (Q_UINT16)(left + width);
- d->mSt << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)11 << (TQ_UINT16)0x081A;
+ d->mSt << (TQ_UINT16)(yCenter + offYEnd) << (TQ_UINT16)(xCenter + offXEnd);
+ d->mSt << (TQ_UINT16)(yCenter + offYStart) << (TQ_UINT16)(xCenter + offXStart);
+ d->mSt << (TQ_UINT16)(top + height) << (TQ_UINT16)(left + width);
+ d->mSt << (TQ_UINT16)top << (TQ_UINT16)left;
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, 11 );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, 11 );
}
@@ -316,50 +316,50 @@ void KoWmfWrite::drawChord( int left, int top, int width, int height , int a, in
xCenter = left + (width / 2);
yCenter = top + (height / 2);
- d->mSt << (Q_UINT32)11 << (Q_UINT16)0x0830;
- d->mSt << (Q_UINT16)(yCenter + offYEnd) << (Q_UINT16)(xCenter + offXEnd);
- d->mSt << (Q_UINT16)(yCenter + offYStart) << (Q_UINT16)(xCenter + offXStart);
- d->mSt << (Q_UINT16)(top + height) << (Q_UINT16)(left + width);
- d->mSt << (Q_UINT16)top << (Q_UINT16)left;
+ d->mSt << (TQ_UINT32)11 << (TQ_UINT16)0x0830;
+ d->mSt << (TQ_UINT16)(yCenter + offYEnd) << (TQ_UINT16)(xCenter + offXEnd);
+ d->mSt << (TQ_UINT16)(yCenter + offYStart) << (TQ_UINT16)(xCenter + offXStart);
+ d->mSt << (TQ_UINT16)(top + height) << (TQ_UINT16)(left + width);
+ d->mSt << (TQ_UINT16)top << (TQ_UINT16)left;
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, 11 );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, 11 );
}
-void KoWmfWrite::drawPolyline( const QPointArray &pa ) {
+void KoWmfWrite::drawPolyline( const TQPointArray &pa ) {
int size = 4 + (pa.size() * 2);
- d->mSt << (Q_UINT32)size << (Q_UINT16)0x0325 << (Q_UINT16)pa.size();
+ d->mSt << (TQ_UINT32)size << (TQ_UINT16)0x0325 << (TQ_UINT16)pa.size();
pointArray( pa );
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, size );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, size );
}
-void KoWmfWrite::drawPolygon( const QPointArray &pa, bool ) {
+void KoWmfWrite::drawPolygon( const TQPointArray &pa, bool ) {
int size = 4 + (pa.size() * 2);
- d->mSt << (Q_UINT32)size << (Q_UINT16)0x0324 << (Q_UINT16)pa.size();
+ d->mSt << (TQ_UINT32)size << (TQ_UINT16)0x0324 << (TQ_UINT16)pa.size();
pointArray( pa );
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, size );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, size );
}
-void KoWmfWrite::drawPolyPolygon( QPtrList<QPointArray>& listPa, bool ) {
+void KoWmfWrite::drawPolyPolygon( TQPtrList<TQPointArray>& listPa, bool ) {
- QPointArray *pa;
+ TQPointArray *pa;
int sizeArrayPoly = 0;
for ( pa = listPa.first() ; pa ; pa = listPa.next() ) {
sizeArrayPoly += (pa->size() * 2);
}
int size = 4 + listPa.count() + sizeArrayPoly;
- d->mSt << (Q_UINT32)size << (Q_UINT16)0x0538 << (Q_UINT16)listPa.count();
+ d->mSt << (TQ_UINT32)size << (TQ_UINT16)0x0538 << (TQ_UINT16)listPa.count();
// number of point for each Polygon
for ( pa = listPa.first() ; pa ; pa = listPa.next() ) {
- d->mSt << (Q_UINT16)pa->size();
+ d->mSt << (TQ_UINT16)pa->size();
}
// list of points
@@ -367,44 +367,44 @@ void KoWmfWrite::drawPolyPolygon( QPtrList<QPointArray>& listPa, bool ) {
pointArray( *pa );
}
- d->mMaxRecordSize = QMAX( d->mMaxRecordSize, size );
+ d->mMaxRecordSize = TQMAX( d->mMaxRecordSize, size );
}
-void KoWmfWrite::drawImage( int , int , const QImage &, int , int , int , int ) {
+void KoWmfWrite::drawImage( int , int , const TQImage &, int , int , int , int ) {
/*
- QImage img;
+ TQImage img;
img = image;
img.setFormat( "BMP" );
- QIODevice io = img.ioDevice();
+ TQIODevice io = img.ioDevice();
io.at( 14 ); // skip the BMP header
d->mSt << io.readAll();
*/
}
-void KoWmfWrite::drawText( int , int , int , int , int , const QString& , double ) {
-// d->mSt << (Q_UINT32)3 << (Q_UINT16)0x0A32;
+void KoWmfWrite::drawText( int , int , int , int , int , const TQString& , double ) {
+// d->mSt << (TQ_UINT32)3 << (TQ_UINT16)0x0A32;
}
//-----------------------------------------------------------------------------
-// Utilities and conversion Qt --> Wmf
+// Utilities and conversion TQt --> Wmf
-void KoWmfWrite::pointArray( const QPointArray &pa ) {
+void KoWmfWrite::pointArray( const TQPointArray &pa ) {
int left, top, i, max;
for ( i=0, max=pa.size() ; i < max ; i++ ) {
pa.point( i, &left, &top );
- d->mSt << (Q_INT16)left << (Q_INT16)top;
+ d->mSt << (TQ_INT16)left << (TQ_INT16)top;
}
}
-Q_UINT32 KoWmfWrite::winColor( QColor color ) {
- Q_UINT32 c;
+TQ_UINT32 KoWmfWrite::winColor( TQColor color ) {
+ TQ_UINT32 c;
c = (color.red() & 0xFF);
c += ( (color.green() & 0xFF) << 8 );
@@ -427,7 +427,7 @@ void KoWmfWrite::angleToxy( int &xStart, int &yStart, int &xEnd, int &yEnd, int
}
-Q_UINT16 KoWmfWrite::qtRasterToWin16( Qt::RasterOp op ) const {
+TQ_UINT16 KoWmfWrite::qtRasterToWin16( TQt::RasterOp op ) const {
int i;
for ( i=0 ; i < 17 ; i++ ) {
@@ -435,13 +435,13 @@ Q_UINT16 KoWmfWrite::qtRasterToWin16( Qt::RasterOp op ) const {
}
if ( i < 17 )
- return (Q_UINT16)i;
+ return (TQ_UINT16)i;
else
- return (Q_UINT16)0;
+ return (TQ_UINT16)0;
}
-Q_UINT32 KoWmfWrite::qtRasterToWin32( Qt::RasterOp op ) const {
+TQ_UINT32 KoWmfWrite::qtRasterToWin32( TQt::RasterOp op ) const {
int i;
for ( i=0 ; i < 15 ; i++ ) {