update credits
[LibreOffice.git] / include / tools / postsys.h
blob3c3431e50b8dcbc184c03c51f3ddadfafa2dbccb
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 /* not protected, must be included together with prestl.h! */
22 #if defined WNT
24 #undef Region
25 #undef PolyPolygon
26 #undef Polygon
27 #undef Rectangle
28 #undef DELETE
30 /* rename help IDs */
31 #define WIN_HELP_INDEX 0x0003
32 #define WIN_HELP_HELPONHELP 0x0004
33 #undef HELP_INDEX
34 #undef HELP_HELPONHELP
36 #define WIN_MOUSE_MOVED 0x0001
37 #undef MOUSE_MOVED
39 #define WIN_WB_LEFT 0
40 #define WIN_WB_RIGHT 1
41 #undef WB_LEFT
42 #undef WB_RIGHT
44 #ifdef GetObject
45 #undef GetObject
46 #ifdef UNICODE
47 #define WIN_GetObject GetObjectW
48 #else
49 #define WIN_GetObject GetObjectA
50 #endif
51 #else
52 #define WIN_GetObject GetObject
53 #endif
55 #ifdef SetPrinter
56 #undef SetPrinter
57 #ifdef UNICODE
58 #define WIN_SetPrinter SetPrinterW
59 #else
60 #define WIN_SetPrinter SetPrinterA
61 #endif
62 #else
63 #define WIN_SetPrinter SetPrinter
64 #endif
66 #ifdef GetPrinter
67 #undef GetPrinter
68 #ifdef UNICODE
69 #define WIN_GetPrinter GetPrinterW
70 #else
71 #define WIN_GetPrinter GetPrinterA
72 #endif
73 #else
74 #define WIN_GetPrinter GetPrinter
75 #endif
77 #ifdef DrawText
78 #undef DrawText
79 #ifdef UNICODE
80 #define WIN_DrawText DrawTextW
81 #else
82 #define WIN_DrawText DrawTextA
83 #endif
84 #else
85 #define WIN_DrawText DrawText
86 #endif
88 #ifdef mciSetCommand
89 #undef mciSetCommand
90 #ifdef UNICODE
91 #define WIN_mciSetCommand mciSetCommandW
92 #else
93 #define WIN_mciSetCommand mciSetCommandA
94 #endif
95 #else
96 #define mciSetCommand mciSetCommand
97 #endif
99 #ifdef SetPort
100 #undef SetPort
101 #ifdef UNICODE
102 #define WIN_SetPort SetPortW
103 #else
104 #define WIN_SetPort SetPortA
105 #endif
106 #else
107 #define WIN_SetPort SetPort
108 #endif
110 #ifdef CopyFile
111 #undef CopyFile
112 #ifdef UNICODE
113 #define WIN_CopyFile CopyFileW
114 #else
115 #define WIN_CopyFile CopyFileA
116 #endif
117 #else
118 #define WIN_CopyFile CopyFile
119 #endif
121 #ifdef GetUserName
122 #undef GetUserName
123 #ifdef UNICODE
124 #define WIN_GetUserName GetUserNameW
125 #else
126 #define WIN_GetUserName GetUserNameA
127 #endif
128 #else
129 #define WIN_GetUserName GetUserName
130 #endif
132 #ifdef GetClassName
133 #undef GetClassName
134 #ifdef UNICODE
135 #define WIN_GetClassName GetClassNameW
136 #else
137 #define WIN_GetClassName GetClassNameA
138 #endif
139 #else
140 #define WIN_GetClassName GetClassName
141 #endif
143 #ifdef GetCharWidth
144 #undef GetCharWidth
145 #ifdef UNICODE
146 #define WIN_GetCharWidth GetCharWidthW
147 #else
148 #define WIN_GetCharWidth GetCharWidthA
149 #endif
150 #else
151 #define WIN_GetCharWidth GetCharWidth
152 #endif
154 #ifdef GetMetaFile
155 #undef GetMetaFile
156 #ifdef UNICODE
157 #define WIN_GetMetaFile GetMetaFileW
158 #else
159 #define WIN_GetMetaFile GetMetaFileA
160 #endif
161 #else
162 #define WIN_GetMetaFile GetMetaFile
163 #endif
165 #ifdef GetNumberFormat
166 #undef GetNumberFormat
167 #ifdef UNICODE
168 #define WIN_GetNumberFormat GetNumberFormatW
169 #else
170 #define WIN_GetNumberFormat GetNumberFormatA
171 #endif
172 #else
173 #define WIN_GetNumberFormat GetNumberFormat
174 #endif
176 #ifdef GetGlyphOutline
177 #undef GetGlyphOutline
178 #ifdef UNICODE
179 #define WIN_GetGlyphOutline GetGlyphOutlineW
180 #else
181 #define WIN_GetGlyphOutline GetGlyphOutlineA
182 #endif
183 #else
184 #define WIN_GetGlyphOutline GetGlyphOutline
185 #endif
187 #ifdef GetKerningPairs
188 #undef GetKerningPairs
189 #ifdef UNICODE
190 #define WIN_GetKerningPairs GetKerningPairsW
191 #else
192 #define WIN_GetKerningPairs GetKerningPairsA
193 #endif
194 #else
195 #define WIN_GetKerningPairs GetKerningPairs
196 #endif
198 #ifdef FindWindow
199 #undef FindWindow
200 #ifdef UNICODE
201 #define WIN_FindWindow FindWindowW
202 #else
203 #define WIN_FindWindow FindWindowA
204 #endif
205 #else
206 #define WIN_FindWindow FindWindow
207 #endif
209 #undef Yield
211 /* new StretchBlt() Modes (simpler names) */
212 #ifndef STRETCH_ANDSCANS
213 #define STRETCH_ANDSCANS 1
214 #endif
215 #ifndef STRETCH_ORSCANS
216 #define STRETCH_ORSCANS 2
217 #endif
218 #ifndef STRETCH_DELETESCANS
219 #define STRETCH_DELETESCANS 3
220 #endif
222 extern "C"
224 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 );
225 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt );
226 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt );
229 #endif
231 // avoid conflict with Pair in tools
232 #undef Pair
234 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */