diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kwmf/kowmfstruct.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/kowmfstruct.h')
-rw-r--r-- | lib/kwmf/kowmfstruct.h | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/lib/kwmf/kowmfstruct.h b/lib/kwmf/kowmfstruct.h index 2837fa71..d94a9d79 100644 --- a/lib/kwmf/kowmfstruct.h +++ b/lib/kwmf/kowmfstruct.h @@ -5,116 +5,116 @@ #ifndef _KOWMFSTRUCT_H_ #define _KOWMFSTRUCT_H_ -#include <qglobal.h> -#include <qnamespace.h> +#include <tqglobal.h> +#include <tqnamespace.h> #define APMHEADER_KEY 0x9AC6CDD7 #define ENHMETA_SIGNATURE 0x464D4520 struct WmfMetaHeader { - Q_UINT16 fileType; // Type of metafile (0=memory, 1=disk) - Q_UINT16 headerSize; // always 9 - Q_UINT16 version; - Q_UINT32 fileSize; // Total size of the metafile in WORDs - Q_UINT16 numOfObjects; // Maximum Number of objects in the stack - Q_UINT32 maxRecordSize; // The size of largest record in WORDs - Q_UINT16 numOfParameters; // not used (always 0) + TQ_UINT16 fileType; // Type of metafile (0=memory, 1=disk) + TQ_UINT16 headerSize; // always 9 + TQ_UINT16 version; + TQ_UINT32 fileSize; // Total size of the metafile in WORDs + TQ_UINT16 numOfObjects; // Maximum Number of objects in the stack + TQ_UINT32 maxRecordSize; // The size of largest record in WORDs + TQ_UINT16 numOfParameters; // not used (always 0) }; struct WmfPlaceableHeader { - Q_UINT32 key; // Magic number (always 9AC6CDD7h) - Q_UINT16 handle; // Metafile HANDLE number (always 0) - Q_INT16 left; // Left coordinate in metafile units - Q_INT16 top; - Q_INT16 right; - Q_INT16 bottom; - Q_UINT16 inch; // Number of metafile units per inch - Q_UINT32 reserved; - Q_UINT16 checksum; // Checksum value for previous 10 WORDs + TQ_UINT32 key; // Magic number (always 9AC6CDD7h) + TQ_UINT16 handle; // Metafile HANDLE number (always 0) + TQ_INT16 left; // Left coordinate in metafile units + TQ_INT16 top; + TQ_INT16 right; + TQ_INT16 bottom; + TQ_UINT16 inch; // Number of metafile units per inch + TQ_UINT32 reserved; + TQ_UINT16 checksum; // Checksum value for previous 10 WORDs }; struct WmfEnhMetaHeader { - Q_UINT32 recordType; // Record type (is always 00000001h) - Q_UINT32 recordSize; // Record size in bytes. This may be greater + TQ_UINT32 recordType; // Record type (is always 00000001h) + TQ_UINT32 recordSize; // Record size in bytes. This may be greater // than the sizeof( ENHMETAHEADER ). - Q_INT32 boundsLeft; // Inclusive-inclusive bounds in device units - Q_INT32 boundsTop; - Q_INT32 boundsRight; - Q_INT32 boundsBottom; - Q_INT32 frameLeft; // Inclusive-inclusive Picture Frame - Q_INT32 frameTop; - Q_INT32 frameRight; - Q_INT32 frameBottom; - Q_UINT32 signature; // Signature. Must be ENHMETA_SIGNATURE. - Q_UINT32 version; // Version number - Q_UINT32 size; // Size of the metafile in bytes - Q_UINT32 numOfRecords; // Number of records in the metafile - Q_UINT16 numHandles; // Number of handles in the handle table + TQ_INT32 boundsLeft; // Inclusive-inclusive bounds in device units + TQ_INT32 boundsTop; + TQ_INT32 boundsRight; + TQ_INT32 boundsBottom; + TQ_INT32 frameLeft; // Inclusive-inclusive Picture Frame + TQ_INT32 frameTop; + TQ_INT32 frameRight; + TQ_INT32 frameBottom; + TQ_UINT32 signature; // Signature. Must be ENHMETA_SIGNATURE. + TQ_UINT32 version; // Version number + TQ_UINT32 size; // Size of the metafile in bytes + TQ_UINT32 numOfRecords; // Number of records in the metafile + TQ_UINT16 numHandles; // Number of handles in the handle table // Handle index zero is reserved. - Q_UINT16 reserved; // always 0 - Q_UINT32 sizeOfDescription; // Number of chars in the unicode description string + TQ_UINT16 reserved; // always 0 + TQ_UINT32 sizeOfDescription; // Number of chars in the tqunicode description string // This is 0 if there is no description string - Q_UINT32 offsetOfDescription; // Offset to the metafile description record. + TQ_UINT32 offsetOfDescription; // Offset to the metafile description record. // This is 0 if there is no description string - Q_UINT32 numPaletteEntries; // Number of color palette entries - Q_INT32 widthDevicePixels; // Size of the reference device in pixels - Q_INT32 heightDevicePixels; - Q_INT32 widthDeviceMM; // Size of the reference device in millimeters - Q_INT32 heightDeviceMM; + TQ_UINT32 numPaletteEntries; // Number of color palette entries + TQ_INT32 widthDevicePixels; // Size of the reference device in pixels + TQ_INT32 heightDevicePixels; + TQ_INT32 widthDeviceMM; // Size of the reference device in millimeters + TQ_INT32 heightDeviceMM; }; struct WmfMetaRecord { - Q_UINT32 size; // Total size of the record in WORDs - Q_UINT16 function; // Record function number - Q_UINT16 param[ 1 ]; // Q_UINT16 array of parameters + TQ_UINT32 size; // Total size of the record in WORDs + TQ_UINT16 function; // Record function number + TQ_UINT16 param[ 1 ]; // TQ_UINT16 array of parameters }; struct WmfEnhMetaRecord { - Q_UINT32 function; // Record function number - Q_UINT32 size; // Record size in bytes - Q_UINT32 param[ 1 ]; // Q_UINT32 array of parameters + TQ_UINT32 function; // Record function number + TQ_UINT32 size; // Record size in bytes + TQ_UINT32 param[ 1 ]; // TQ_UINT32 array of parameters }; // Static data static const struct OpTab { - Q_UINT32 winRasterOp; - Qt::RasterOp qtRasterOp; + TQ_UINT32 winRasterOp; + TQt::RasterOp qtRasterOp; } koWmfOpTab32[] = { - { 0x00CC0020, Qt::CopyROP }, - { 0x00EE0086, Qt::OrROP }, - { 0x008800C6, Qt::AndROP }, - { 0x00660046, Qt::XorROP }, - { 0x00440328, Qt::AndNotROP }, - { 0x00330008, Qt::NotCopyROP }, - { 0x001100A6, Qt::NandROP }, - { 0x00C000CA, Qt::CopyROP }, - { 0x00BB0226, Qt::NotOrROP }, - { 0x00F00021, Qt::CopyROP }, - { 0x00FB0A09, Qt::CopyROP }, - { 0x005A0049, Qt::CopyROP }, - { 0x00550009, Qt::NotROP }, - { 0x00000042, Qt::ClearROP }, - { 0x00FF0062, Qt::SetROP } + { 0x00CC0020, TQt::CopyROP }, + { 0x00EE0086, TQt::OrROP }, + { 0x008800C6, TQt::AndROP }, + { 0x00660046, TQt::XorROP }, + { 0x00440328, TQt::AndNotROP }, + { 0x00330008, TQt::NotCopyROP }, + { 0x001100A6, TQt::NandROP }, + { 0x00C000CA, TQt::CopyROP }, + { 0x00BB0226, TQt::NotOrROP }, + { 0x00F00021, TQt::CopyROP }, + { 0x00FB0A09, TQt::CopyROP }, + { 0x005A0049, TQt::CopyROP }, + { 0x00550009, TQt::NotROP }, + { 0x00000042, TQt::ClearROP }, + { 0x00FF0062, TQt::SetROP } }; - static const Qt::RasterOp koWmfOpTab16[] = + static const TQt::RasterOp koWmfOpTab16[] = { - Qt::CopyROP, - Qt::ClearROP, Qt::NandROP, Qt::NotAndROP, Qt::NotCopyROP, - Qt::AndNotROP, Qt::NotROP, Qt::XorROP, Qt::NorROP, - Qt::AndROP, Qt::NotXorROP, Qt::NopROP, Qt::NotOrROP, - Qt::CopyROP, Qt::OrNotROP, Qt::OrROP, Qt::SetROP + TQt::CopyROP, + TQt::ClearROP, TQt::NandROP, TQt::NotAndROP, TQt::NotCopyROP, + TQt::AndNotROP, TQt::NotROP, TQt::XorROP, TQt::NorROP, + TQt::AndROP, TQt::NotXorROP, TQt::NopROP, TQt::NotOrROP, + TQt::CopyROP, TQt::OrNotROP, TQt::OrROP, TQt::SetROP }; static const Qt::BrushStyle koWmfHatchedStyleBrush[] = |