9#include <tqnamespace.h>
11#define APMHEADER_KEY 0x9AC6CDD7
12#define ENHMETA_SIGNATURE 0x464D4520
20 TQ_UINT16 numOfObjects;
21 TQ_UINT32 maxRecordSize;
22 TQ_UINT16 numOfParameters;
26struct WmfPlaceableHeader
40struct WmfEnhMetaHeader
48 TQ_INT32 boundsBottom;
56 TQ_UINT32 numOfRecords;
60 TQ_UINT32 sizeOfDescription;
62 TQ_UINT32 offsetOfDescription;
64 TQ_UINT32 numPaletteEntries;
65 TQ_INT32 widthDevicePixels;
66 TQ_INT32 heightDevicePixels;
67 TQ_INT32 widthDeviceMM;
68 TQ_INT32 heightDeviceMM;
80struct WmfEnhMetaRecord
88 static const struct OpTab
90 TQ_UINT32 winRasterOp;
91 TQt::RasterOp qtRasterOp;
94 { 0x00CC0020, TQt::CopyROP },
95 { 0x00EE0086, TQt::OrROP },
96 { 0x008800C6, TQt::AndROP },
97 { 0x00660046, TQt::XorROP },
98 { 0x00440328, TQt::AndNotROP },
99 { 0x00330008, TQt::NotCopyROP },
100 { 0x001100A6, TQt::NandROP },
101 { 0x00C000CA, TQt::CopyROP },
102 { 0x00BB0226, TQt::NotOrROP },
103 { 0x00F00021, TQt::CopyROP },
104 { 0x00FB0A09, TQt::CopyROP },
105 { 0x005A0049, TQt::CopyROP },
106 { 0x00550009, TQt::NotROP },
107 { 0x00000042, TQt::ClearROP },
108 { 0x00FF0062, TQt::SetROP }
111 static const TQt::RasterOp koWmfOpTab16[] =
114 TQt::ClearROP, TQt::NandROP, TQt::NotAndROP, TQt::NotCopyROP,
115 TQt::AndNotROP, TQt::NotROP, TQt::XorROP, TQt::NorROP,
116 TQt::AndROP, TQt::NotXorROP, TQt::NopROP, TQt::NotOrROP,
117 TQt::CopyROP, TQt::OrNotROP, TQt::OrROP, TQt::SetROP
120 static const TQt::BrushStyle koWmfHatchedStyleBrush[] =
127 TQt::DiagCrossPattern
130 static const TQt::BrushStyle koWmfStyleBrush[] =
142 static const TQt::PenStyle koWmfStylePen[] =
143 { TQt::SolidLine, TQt::DashLine, TQt::DotLine, TQt::DashDotLine, TQt::DashDotDotLine,
144 TQt::NoPen, TQt::SolidLine };
unsigned int version() Returns the encoded number of KOffice's version, see the KOFFICE_VERSION macro.
|