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