update credits
[LibreOffice.git] / include / postwin.h
blob71b85ea855d7365e51f4cba6e7319a2778c5c3db
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 /* nicht geschuetz, muss als gegenstueck zu prewin.h includet werden */
22 #ifdef WNT
23 #ifdef __cplusplus
25 #endif
26 #endif
28 #undef Region
29 #undef PolyPolygon
30 #undef Polygon
31 #undef Rectangle
32 #undef DELETE
34 #undef Folder
35 #undef GradientStyle_RECT
37 /* Hilfe-Ids umbenennen */
38 #define WIN_HELP_INDEX 0x0003
39 #define WIN_HELP_HELPONHELP 0x0004
40 #undef HELP_INDEX
41 #undef HELP_HELPONHELP
43 #define WIN_MOUSE_MOVED 0x0001
44 #undef MOUSE_MOVED
46 #define WIN_WB_LEFT 0
47 #define WIN_WB_RIGHT 1
48 #undef WB_LEFT
49 #undef WB_RIGHT
51 #ifdef GetObject
52 #undef GetObject
53 #ifdef UNICODE
54 #define WIN_GetObject GetObjectW
55 #else
56 #define WIN_GetObject GetObjectA
57 #endif
58 #else
59 #define WIN_GetObject GetObject
60 #endif
62 #ifdef SetPrinter
63 #undef SetPrinter
64 #ifdef UNICODE
65 #define WIN_SetPrinter SetPrinterW
66 #else
67 #define WIN_SetPrinter SetPrinterA
68 #endif
69 #else
70 #define WIN_SetPrinter SetPrinter
71 #endif
73 #ifdef GetPrinter
74 #undef GetPrinter
75 #ifdef UNICODE
76 #define WIN_GetPrinter GetPrinterW
77 #else
78 #define WIN_GetPrinter GetPrinterA
79 #endif
80 #else
81 #define WIN_GetPrinter GetPrinter
82 #endif
84 #ifdef DrawText
85 #undef DrawText
86 #ifdef UNICODE
87 #define WIN_DrawText DrawTextW
88 #else
89 #define WIN_DrawText DrawTextA
90 #endif
91 #else
92 #define WIN_DrawText DrawText
93 #endif
95 #ifdef mciSetCommand
96 #undef mciSetCommand
97 #ifdef UNICODE
98 #define WIN_mciSetCommand mciSetCommandW
99 #else
100 #define WIN_mciSetCommand mciSetCommandA
101 #endif
102 #else
103 #define mciSetCommand mciSetCommand
104 #endif
106 #ifdef SetPort
107 #undef SetPort
108 #ifdef UNICODE
109 #define WIN_SetPort SetPortW
110 #else
111 #define WIN_SetPort SetPortA
112 #endif
113 #else
114 #define WIN_SetPort SetPort
115 #endif
117 #ifdef CopyFile
118 #undef CopyFile
119 #ifdef UNICODE
120 #define WIN_CopyFile CopyFileW
121 #else
122 #define WIN_CopyFile CopyFileA
123 #endif
124 #else
125 #define WIN_CopyFile CopyFile
126 #endif
129 #ifdef GetUserName
130 #undef GetUserName
131 #ifdef UNICODE
132 #define WIN_GetUserName GetUserNameW
133 #else
134 #define WIN_GetUserName GetUserNameA
135 #endif
136 #else
137 #define WIN_GetUserName GetUserName
138 #endif
140 #ifdef GetClassName
141 #undef GetClassName
142 #ifdef UNICODE
143 #define WIN_GetClassName GetClassNameW
144 #else
145 #define WIN_GetClassName GetClassNameA
146 #endif
147 #else
148 #define WIN_GetClassName GetClassName
149 #endif
151 #ifdef GetCharWidth
152 #undef GetCharWidth
153 #ifdef UNICODE
154 #define WIN_GetCharWidth GetCharWidthW
155 #else
156 #define WIN_GetCharWidth GetCharWidthA
157 #endif
158 #else
159 #define WIN_GetCharWidth GetCharWidth
160 #endif
162 #ifdef GetMetaFile
163 #undef GetMetaFile
164 #ifdef UNICODE
165 #define WIN_GetMetaFile GetMetaFileW
166 #else
167 #define WIN_GetMetaFile GetMetaFileA
168 #endif
169 #else
170 #define WIN_GetMetaFile GetMetaFile
171 #endif
173 #ifdef GetNumberFormat
174 #undef GetNumberFormat
175 #ifdef UNICODE
176 #define WIN_GetNumberFormat GetNumberFormatW
177 #else
178 #define WIN_GetNumberFormat GetNumberFormatA
179 #endif
180 #else
181 #define WIN_GetNumberFormat GetNumberFormat
182 #endif
184 #ifdef GetGlyphOutline
185 #undef GetGlyphOutline
186 #ifdef UNICODE
187 #define WIN_GetGlyphOutline GetGlyphOutlineW
188 #else
189 #define WIN_GetGlyphOutline GetGlyphOutlineA
190 #endif
191 #else
192 #define WIN_GetGlyphOutline GetGlyphOutline
193 #endif
195 #ifdef GetKerningPairs
196 #undef GetKerningPairs
197 #ifdef UNICODE
198 #define WIN_GetKerningPairs GetKerningPairsW
199 #else
200 #define WIN_GetKerningPairs GetKerningPairsA
201 #endif
202 #else
203 #define WIN_GetKerningPairs GetKerningPairs
204 #endif
206 #ifdef FindWindow
207 #undef FindWindow
208 #ifdef UNICODE
209 #define WIN_FindWindow FindWindowW
210 #else
211 #define WIN_FindWindow FindWindowA
212 #endif
213 #else
214 #define WIN_FindWindow FindWindow
215 #endif
217 // keine Yield-Definition
218 #undef Yield
220 /* new StretchBlt() Modes (simpler names) */
221 #ifndef STRETCH_ANDSCANS
222 #define STRETCH_ANDSCANS 1
223 #endif
224 #ifndef STRETCH_ORSCANS
225 #define STRETCH_ORSCANS 2
226 #endif
227 #ifndef STRETCH_DELETESCANS
228 #define STRETCH_DELETESCANS 3
229 #endif
231 #ifdef WNT
232 extern "C"
234 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 );
235 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt );
236 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt );
238 #endif
240 // svwin.h nicht mehr includen
241 #define _SVWIN_H
243 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */