bump product version to 4.2.0.1
[LibreOffice.git] / include / postwin.h
blob86f27ad9575578022fac02455d6ccc6de92576eb
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 #undef Region
23 #undef PolyPolygon
24 #undef Polygon
25 #undef Rectangle
26 #undef DELETE
28 #undef Folder
29 #undef GradientStyle_RECT
31 /* Hilfe-Ids umbenennen */
32 #define WIN_HELP_INDEX 0x0003
33 #define WIN_HELP_HELPONHELP 0x0004
34 #undef HELP_INDEX
35 #undef HELP_HELPONHELP
37 #define WIN_MOUSE_MOVED 0x0001
38 #undef MOUSE_MOVED
40 #define WIN_WB_LEFT 0
41 #define WIN_WB_RIGHT 1
42 #undef WB_LEFT
43 #undef WB_RIGHT
45 #ifdef GetObject
46 #undef GetObject
47 #ifdef UNICODE
48 #define WIN_GetObject GetObjectW
49 #else
50 #define WIN_GetObject GetObjectA
51 #endif
52 #else
53 #define WIN_GetObject GetObject
54 #endif
56 #ifdef SetPrinter
57 #undef SetPrinter
58 #ifdef UNICODE
59 #define WIN_SetPrinter SetPrinterW
60 #else
61 #define WIN_SetPrinter SetPrinterA
62 #endif
63 #else
64 #define WIN_SetPrinter SetPrinter
65 #endif
67 #ifdef GetPrinter
68 #undef GetPrinter
69 #ifdef UNICODE
70 #define WIN_GetPrinter GetPrinterW
71 #else
72 #define WIN_GetPrinter GetPrinterA
73 #endif
74 #else
75 #define WIN_GetPrinter GetPrinter
76 #endif
78 #ifdef DrawText
79 #undef DrawText
80 #ifdef UNICODE
81 #define WIN_DrawText DrawTextW
82 #else
83 #define WIN_DrawText DrawTextA
84 #endif
85 #else
86 #define WIN_DrawText DrawText
87 #endif
89 #ifdef mciSetCommand
90 #undef mciSetCommand
91 #ifdef UNICODE
92 #define WIN_mciSetCommand mciSetCommandW
93 #else
94 #define WIN_mciSetCommand mciSetCommandA
95 #endif
96 #else
97 #define mciSetCommand mciSetCommand
98 #endif
100 #ifdef SetPort
101 #undef SetPort
102 #ifdef UNICODE
103 #define WIN_SetPort SetPortW
104 #else
105 #define WIN_SetPort SetPortA
106 #endif
107 #else
108 #define WIN_SetPort SetPort
109 #endif
111 #ifdef CopyFile
112 #undef CopyFile
113 #ifdef UNICODE
114 #define WIN_CopyFile CopyFileW
115 #else
116 #define WIN_CopyFile CopyFileA
117 #endif
118 #else
119 #define WIN_CopyFile CopyFile
120 #endif
123 #ifdef GetUserName
124 #undef GetUserName
125 #ifdef UNICODE
126 #define WIN_GetUserName GetUserNameW
127 #else
128 #define WIN_GetUserName GetUserNameA
129 #endif
130 #else
131 #define WIN_GetUserName GetUserName
132 #endif
134 #ifdef GetClassName
135 #undef GetClassName
136 #ifdef UNICODE
137 #define WIN_GetClassName GetClassNameW
138 #else
139 #define WIN_GetClassName GetClassNameA
140 #endif
141 #else
142 #define WIN_GetClassName GetClassName
143 #endif
145 #ifdef GetCharWidth
146 #undef GetCharWidth
147 #ifdef UNICODE
148 #define WIN_GetCharWidth GetCharWidthW
149 #else
150 #define WIN_GetCharWidth GetCharWidthA
151 #endif
152 #else
153 #define WIN_GetCharWidth GetCharWidth
154 #endif
156 #ifdef GetMetaFile
157 #undef GetMetaFile
158 #ifdef UNICODE
159 #define WIN_GetMetaFile GetMetaFileW
160 #else
161 #define WIN_GetMetaFile GetMetaFileA
162 #endif
163 #else
164 #define WIN_GetMetaFile GetMetaFile
165 #endif
167 #ifdef GetNumberFormat
168 #undef GetNumberFormat
169 #ifdef UNICODE
170 #define WIN_GetNumberFormat GetNumberFormatW
171 #else
172 #define WIN_GetNumberFormat GetNumberFormatA
173 #endif
174 #else
175 #define WIN_GetNumberFormat GetNumberFormat
176 #endif
178 #ifdef GetGlyphOutline
179 #undef GetGlyphOutline
180 #ifdef UNICODE
181 #define WIN_GetGlyphOutline GetGlyphOutlineW
182 #else
183 #define WIN_GetGlyphOutline GetGlyphOutlineA
184 #endif
185 #else
186 #define WIN_GetGlyphOutline GetGlyphOutline
187 #endif
189 #ifdef GetKerningPairs
190 #undef GetKerningPairs
191 #ifdef UNICODE
192 #define WIN_GetKerningPairs GetKerningPairsW
193 #else
194 #define WIN_GetKerningPairs GetKerningPairsA
195 #endif
196 #else
197 #define WIN_GetKerningPairs GetKerningPairs
198 #endif
200 #ifdef FindWindow
201 #undef FindWindow
202 #ifdef UNICODE
203 #define WIN_FindWindow FindWindowW
204 #else
205 #define WIN_FindWindow FindWindowA
206 #endif
207 #else
208 #define WIN_FindWindow FindWindow
209 #endif
211 // keine Yield-Definition
212 #undef Yield
214 /* new StretchBlt() Modes (simpler names) */
215 #ifndef STRETCH_ANDSCANS
216 #define STRETCH_ANDSCANS 1
217 #endif
218 #ifndef STRETCH_ORSCANS
219 #define STRETCH_ORSCANS 2
220 #endif
221 #ifndef STRETCH_DELETESCANS
222 #define STRETCH_DELETESCANS 3
223 #endif
225 extern "C"
227 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 );
228 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt );
229 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt );
232 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */