1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 /* nicht geschuetz, muss als gegenstueck zu prestl.h includet werden */ 25 26 #if defined WNT 27 28 #undef Region 29 #undef PolyPolygon 30 #undef Polygon 31 #undef Rectangle 32 #undef sal_uInt8 33 #undef sal_Bool 34 #undef DELETE 35 36 /* Hilfe-Ids umbenennen */ 37 #define WIN_HELP_INDEX 0x0003 38 #define WIN_HELP_HELPONHELP 0x0004 39 #undef HELP_INDEX 40 #undef HELP_HELPONHELP 41 42 #define WIN_MOUSE_MOVED 0x0001 43 #undef MOUSE_MOVED 44 45 #define WIN_WB_LEFT 0 46 #define WIN_WB_RIGHT 1 47 #undef WB_LEFT 48 #undef WB_RIGHT 49 50 #ifdef GetObject 51 #undef GetObject 52 #ifdef UNICODE 53 #define WIN_GetObject GetObjectW 54 #else 55 #define WIN_GetObject GetObjectA 56 #endif 57 #else 58 #define WIN_GetObject GetObject 59 #endif 60 61 #ifdef SetPrinter 62 #undef SetPrinter 63 #ifdef UNICODE 64 #define WIN_SetPrinter SetPrinterW 65 #else 66 #define WIN_SetPrinter SetPrinterA 67 #endif 68 #else 69 #define WIN_SetPrinter SetPrinter 70 #endif 71 72 #ifdef GetPrinter 73 #undef GetPrinter 74 #ifdef UNICODE 75 #define WIN_GetPrinter GetPrinterW 76 #else 77 #define WIN_GetPrinter GetPrinterA 78 #endif 79 #else 80 #define WIN_GetPrinter GetPrinter 81 #endif 82 83 #ifdef DrawText 84 #undef DrawText 85 #ifdef UNICODE 86 #define WIN_DrawText DrawTextW 87 #else 88 #define WIN_DrawText DrawTextA 89 #endif 90 #else 91 #define WIN_DrawText DrawText 92 #endif 93 94 #ifdef mciSetCommand 95 #undef mciSetCommand 96 #ifdef UNICODE 97 #define WIN_mciSetCommand mciSetCommandW 98 #else 99 #define WIN_mciSetCommand mciSetCommandA 100 #endif 101 #else 102 #define mciSetCommand mciSetCommand 103 #endif 104 105 #ifdef SetPort 106 #undef SetPort 107 #ifdef UNICODE 108 #define WIN_SetPort SetPortW 109 #else 110 #define WIN_SetPort SetPortA 111 #endif 112 #else 113 #define WIN_SetPort SetPort 114 #endif 115 116 #ifdef CopyFile 117 #undef CopyFile 118 #ifdef UNICODE 119 #define WIN_CopyFile CopyFileW 120 #else 121 #define WIN_CopyFile CopyFileA 122 #endif 123 #else 124 #define WIN_CopyFile CopyFile 125 #endif 126 127 #ifdef GetUserName 128 #undef GetUserName 129 #ifdef UNICODE 130 #define WIN_GetUserName GetUserNameW 131 #else 132 #define WIN_GetUserName GetUserNameA 133 #endif 134 #else 135 #define WIN_GetUserName GetUserName 136 #endif 137 138 #ifdef GetClassName 139 #undef GetClassName 140 #ifdef UNICODE 141 #define WIN_GetClassName GetClassNameW 142 #else 143 #define WIN_GetClassName GetClassNameA 144 #endif 145 #else 146 #define WIN_GetClassName GetClassName 147 #endif 148 149 #ifdef GetCharWidth 150 #undef GetCharWidth 151 #ifdef UNICODE 152 #define WIN_GetCharWidth GetCharWidthW 153 #else 154 #define WIN_GetCharWidth GetCharWidthA 155 #endif 156 #else 157 #define WIN_GetCharWidth GetCharWidth 158 #endif 159 160 #ifdef GetMetaFile 161 #undef GetMetaFile 162 #ifdef UNICODE 163 #define WIN_GetMetaFile GetMetaFileW 164 #else 165 #define WIN_GetMetaFile GetMetaFileA 166 #endif 167 #else 168 #define WIN_GetMetaFile GetMetaFile 169 #endif 170 171 #ifdef GetNumberFormat 172 #undef GetNumberFormat 173 #ifdef UNICODE 174 #define WIN_GetNumberFormat GetNumberFormatW 175 #else 176 #define WIN_GetNumberFormat GetNumberFormatA 177 #endif 178 #else 179 #define WIN_GetNumberFormat GetNumberFormat 180 #endif 181 182 #ifdef GetGlyphOutline 183 #undef GetGlyphOutline 184 #ifdef UNICODE 185 #define WIN_GetGlyphOutline GetGlyphOutlineW 186 #else 187 #define WIN_GetGlyphOutline GetGlyphOutlineA 188 #endif 189 #else 190 #define WIN_GetGlyphOutline GetGlyphOutline 191 #endif 192 193 #ifdef GetKerningPairs 194 #undef GetKerningPairs 195 #ifdef UNICODE 196 #define WIN_GetKerningPairs GetKerningPairsW 197 #else 198 #define WIN_GetKerningPairs GetKerningPairsA 199 #endif 200 #else 201 #define WIN_GetKerningPairs GetKerningPairs 202 #endif 203 204 #ifdef FindWindow 205 #undef FindWindow 206 #ifdef UNICODE 207 #define WIN_FindWindow FindWindowW 208 #else 209 #define WIN_FindWindow FindWindowA 210 #endif 211 #else 212 #define WIN_FindWindow FindWindow 213 #endif 214 215 // keine Yield-Definition 216 #undef Yield 217 218 /* new StretchBlt() Modes (simpler names) */ 219 #ifndef STRETCH_ANDSCANS 220 #define STRETCH_ANDSCANS 1 221 #endif 222 #ifndef STRETCH_ORSCANS 223 #define STRETCH_ORSCANS 2 224 #endif 225 #ifndef STRETCH_DELETESCANS 226 #define STRETCH_DELETESCANS 3 227 #endif 228 229 extern "C" 230 { 231 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 ); 232 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt ); 233 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt ); 234 } 235 236 #endif 237 238 // Konfl�kt mit den Tools-Pair vermeiden 239 #undef Pair 240 241