xref: /aoo42x/main/tools/inc/tools/postwin.h (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 /* nicht geschuetz, muss als gegenstueck zu prewin.h includet werden */
29 
30 #ifdef WNT
31 #ifdef __cplusplus
32 }
33 #endif
34 #endif
35 
36 #undef Region
37 #undef PolyPolygon
38 #undef Polygon
39 #undef Rectangle
40 #undef BYTE
41 #undef BOOL
42 #undef DELETE
43 
44 #ifndef VCL_NEED_BASETSD
45 #undef INT64
46 #undef UINT64
47 #undef INT32
48 #undef UINT32
49 #endif
50 #undef Folder
51 #undef GradientStyle_RECT
52 
53 /* Hilfe-Ids umbenennen */
54 #define WIN_HELP_INDEX		 0x0003
55 #define WIN_HELP_HELPONHELP  0x0004
56 #undef HELP_INDEX
57 #undef HELP_HELPONHELP
58 
59 #define WIN_MOUSE_MOVED 0x0001
60 #undef MOUSE_MOVED
61 
62 #define WIN_WB_LEFT 			  0
63 #define WIN_WB_RIGHT			  1
64 #undef WB_LEFT
65 #undef WB_RIGHT
66 
67 #ifdef GetObject
68 #undef GetObject
69 #ifdef UNICODE
70 #define WIN_GetObject	GetObjectW
71 #else
72 #define WIN_GetObject	GetObjectA
73 #endif
74 #else
75 #define WIN_GetObject	GetObject
76 #endif
77 
78 #ifdef SetPrinter
79 #undef SetPrinter
80 #ifdef UNICODE
81 #define WIN_SetPrinter	SetPrinterW
82 #else
83 #define WIN_SetPrinter	SetPrinterA
84 #endif
85 #else
86 #define WIN_SetPrinter	SetPrinter
87 #endif
88 
89 #ifdef GetPrinter
90 #undef GetPrinter
91 #ifdef UNICODE
92 #define WIN_GetPrinter	GetPrinterW
93 #else
94 #define WIN_GetPrinter	GetPrinterA
95 #endif
96 #else
97 #define WIN_GetPrinter	GetPrinter
98 #endif
99 
100 #ifdef DrawText
101 #undef DrawText
102 #ifdef UNICODE
103 #define WIN_DrawText	DrawTextW
104 #else
105 #define WIN_DrawText	DrawTextA
106 #endif
107 #else
108 #define WIN_DrawText	DrawText
109 #endif
110 
111 #ifdef mciSetCommand
112 #undef mciSetCommand
113 #ifdef UNICODE
114 #define WIN_mciSetCommand	mciSetCommandW
115 #else
116 #define WIN_mciSetCommand	mciSetCommandA
117 #endif
118 #else
119 #define mciSetCommand	mciSetCommand
120 #endif
121 
122 #ifdef SetPort
123 #undef SetPort
124 #ifdef UNICODE
125 #define WIN_SetPort 	SetPortW
126 #else
127 #define WIN_SetPort 	SetPortA
128 #endif
129 #else
130 #define WIN_SetPort 	SetPort
131 #endif
132 
133 #ifdef CopyFile
134 #undef CopyFile
135 #ifdef UNICODE
136 #define WIN_CopyFile	CopyFileW
137 #else
138 #define WIN_CopyFile	CopyFileA
139 #endif
140 #else
141 #define WIN_CopyFile	CopyFile
142 #endif
143 
144 
145 #ifdef GetUserName
146 #undef GetUserName
147 #ifdef UNICODE
148 #define WIN_GetUserName GetUserNameW
149 #else
150 #define WIN_GetUserName GetUserNameA
151 #endif
152 #else
153 #define WIN_GetUserName GetUserName
154 #endif
155 
156 #ifdef GetClassName
157 #undef GetClassName
158 #ifdef UNICODE
159 #define WIN_GetClassName GetClassNameW
160 #else
161 #define WIN_GetClassName GetClassNameA
162 #endif
163 #else
164 #define WIN_GetClassName GetClassName
165 #endif
166 
167 #ifdef GetCharWidth
168 #undef GetCharWidth
169 #ifdef UNICODE
170 #define WIN_GetCharWidth GetCharWidthW
171 #else
172 #define WIN_GetCharWidth GetCharWidthA
173 #endif
174 #else
175 #define WIN_GetCharWidth GetCharWidth
176 #endif
177 
178 #ifdef GetMetaFile
179 #undef GetMetaFile
180 #ifdef UNICODE
181 #define WIN_GetMetaFile GetMetaFileW
182 #else
183 #define WIN_GetMetaFile GetMetaFileA
184 #endif
185 #else
186 #define WIN_GetMetaFile GetMetaFile
187 #endif
188 
189 #ifdef GetNumberFormat
190 #undef GetNumberFormat
191 #ifdef UNICODE
192 #define WIN_GetNumberFormat GetNumberFormatW
193 #else
194 #define WIN_GetNumberFormat GetNumberFormatA
195 #endif
196 #else
197 #define WIN_GetNumberFormat GetNumberFormat
198 #endif
199 
200 #ifdef GetGlyphOutline
201 #undef GetGlyphOutline
202 #ifdef UNICODE
203 #define WIN_GetGlyphOutline GetGlyphOutlineW
204 #else
205 #define WIN_GetGlyphOutline GetGlyphOutlineA
206 #endif
207 #else
208 #define WIN_GetGlyphOutline GetGlyphOutline
209 #endif
210 
211 #ifdef GetKerningPairs
212 #undef GetKerningPairs
213 #ifdef UNICODE
214 #define WIN_GetKerningPairs GetKerningPairsW
215 #else
216 #define WIN_GetKerningPairs GetKerningPairsA
217 #endif
218 #else
219 #define WIN_GetKerningPairs GetKerningPairs
220 #endif
221 
222 #ifdef FindWindow
223 #undef FindWindow
224 #ifdef UNICODE
225 #define WIN_FindWindow FindWindowW
226 #else
227 #define WIN_FindWindow FindWindowA
228 #endif
229 #else
230 #define WIN_FindWindow FindWindow
231 #endif
232 
233 // keine Yield-Definition
234 #undef Yield
235 
236 /* new StretchBlt() Modes (simpler names) */
237 #ifndef STRETCH_ANDSCANS
238 #define STRETCH_ANDSCANS		1
239 #endif
240 #ifndef STRETCH_ORSCANS
241 #define STRETCH_ORSCANS 		2
242 #endif
243 #ifndef STRETCH_DELETESCANS
244 #define STRETCH_DELETESCANS 	3
245 #endif
246 
247 #ifdef WNT
248 extern "C"
249 {
250 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 );
251 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt );
252 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt );
253 }
254 #endif
255 
256 // svwin.h nicht mehr includen
257 #define _SVWIN_H
258