Face families are in the top 4 bits of lfPitchAndFamily, so mask with
[wine] / dlls / oledlg / oledlg_main.c
1 /*
2  *      OLEDLG library
3  *
4  *      Copyright 1998  Patrik Stridvall
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #define COM_NO_WINDOWS_H
22 #include <stdarg.h>
23
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "wingdi.h"
28 #include "winuser.h"
29 #include "oledlg.h"
30 #include "wine/debug.h"
31 #include "ole2.h"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(ole);
34
35 /***********************************************************************
36  *           OleUIAddVerbMenuA (OLEDLG.1)
37  */
38 BOOL WINAPI OleUIAddVerbMenuA(
39   LPOLEOBJECT lpOleObj, LPCSTR lpszShortType,
40   HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
41   BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
42 {
43   FIXME("(%p, %s, %p, %d, %d, %d, %d, %d, %p): stub\n",
44     lpOleObj, debugstr_a(lpszShortType),
45     hMenu, uPos, uIDVerbMin, uIDVerbMax,
46     bAddConvert, idConvert, lphMenu
47   );
48   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
49   return FALSE;
50 }
51
52 /***********************************************************************
53  *           OleUIAddVerbMenuW (OLEDLG.14)
54  */
55 BOOL WINAPI OleUIAddVerbMenuW(
56   LPOLEOBJECT lpOleObj, LPCWSTR lpszShortType,
57   HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
58   BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
59 {
60   FIXME("(%p, %s, %p, %d, %d, %d, %d, %d, %p): stub\n",
61     lpOleObj, debugstr_w(lpszShortType),
62     hMenu, uPos, uIDVerbMin, uIDVerbMax,
63     bAddConvert, idConvert, lphMenu
64   );
65   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
66   return FALSE;
67 }
68
69 /***********************************************************************
70  *           OleUICanConvertOrActivateAs (OLEDLG.2)
71  */
72 BOOL WINAPI OleUICanConvertOrActivateAs(
73     REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
74 {
75   FIXME("(%p, %d, %hd): stub\n",
76     rClsid, fIsLinkedObject, wFormat
77   );
78   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79   return FALSE;
80 }
81
82 /***********************************************************************
83  *           OleUIInsertObjectA (OLEDLG.3)
84  */
85 UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA lpOleUIInsertObject)
86 {
87   FIXME("(%p): stub\n", lpOleUIInsertObject);
88   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89   return OLEUI_FALSE;
90 }
91
92 /***********************************************************************
93  *           OleUIInsertObjectW (OLEDLG.20)
94  */
95 UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
96 {
97   FIXME("(%p): stub\n", lpOleUIInsertObject);
98   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
99   return OLEUI_FALSE;
100 }
101
102 /***********************************************************************
103  *           OleUIPasteSpecialA (OLEDLG.4)
104  */
105 UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial)
106 {
107   FIXME("(%p): stub\n", lpOleUIPasteSpecial);
108   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
109   return OLEUI_FALSE;
110 }
111
112 /***********************************************************************
113  *           OleUIPasteSpecialW (OLEDLG.22)
114  */
115 UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial)
116 {
117   FIXME("(%p): stub\n", lpOleUIPasteSpecial);
118   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
119   return OLEUI_FALSE;
120 }
121
122 /***********************************************************************
123  *           OleUIEditLinksA (OLEDLG.5)
124  */
125 UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
126 {
127   FIXME("(%p): stub\n", lpOleUIEditLinks);
128   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
129   return OLEUI_FALSE;
130 }
131
132 /***********************************************************************
133  *           OleUIEditLinksW (OLEDLG.19)
134  */
135 UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
136 {
137   FIXME("(%p): stub\n", lpOleUIEditLinks);
138   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
139   return OLEUI_FALSE;
140 }
141
142 /***********************************************************************
143  *           OleUIChangeIconA (OLEDLG.6)
144  */
145 UINT WINAPI OleUIChangeIconA(
146   LPOLEUICHANGEICONA lpOleUIChangeIcon)
147 {
148   FIXME("(%p): stub\n", lpOleUIChangeIcon);
149   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
150   return OLEUI_FALSE;
151 }
152
153 /***********************************************************************
154  *           OleUIChangeIconW (OLEDLG.16)
155  */
156 UINT WINAPI OleUIChangeIconW(
157   LPOLEUICHANGEICONW lpOleUIChangeIcon)
158 {
159   FIXME("(%p): stub\n", lpOleUIChangeIcon);
160   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
161   return OLEUI_FALSE;
162 }
163
164 /***********************************************************************
165  *           OleUIConvertA (OLEDLG.7)
166  */
167 UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
168 {
169   FIXME("(%p): stub\n", lpOleUIConvert);
170   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
171   return OLEUI_FALSE;
172 }
173
174 /***********************************************************************
175  *           OleUIConvertW (OLEDLG.18)
176  */
177 UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
178 {
179   FIXME("(%p): stub\n", lpOleUIConvert);
180   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
181   return OLEUI_FALSE;
182 }
183
184 /***********************************************************************
185  *           OleUIBusyA (OLEDLG.8)
186  */
187 UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
188 {
189   FIXME("(%p): stub\n", lpOleUIBusy);
190   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
191   return OLEUI_FALSE;
192 }
193
194 /***********************************************************************
195  *           OleUIBusyW (OLEDLG.15)
196  */
197 UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
198 {
199   FIXME("(%p): stub\n", lpOleUIBusy);
200   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
201   return OLEUI_FALSE;
202 }
203
204 /***********************************************************************
205  *           OleUIUpdateLinksA (OLEDLG.9)
206  */
207 BOOL WINAPI OleUIUpdateLinksA(
208   LPOLEUILINKCONTAINERA lpOleUILinkCntr,
209   HWND hwndParent, LPSTR lpszTitle, INT cLinks)
210 {
211   FIXME("(%p, %p, %s, %d): stub\n",
212     lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
213   );
214   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
215   return FALSE;
216 }
217
218 /***********************************************************************
219  *           OleUIUpdateLinksW (OLEDLG.23)
220  */
221 BOOL WINAPI OleUIUpdateLinksW(
222   LPOLEUILINKCONTAINERW lpOleUILinkCntr,
223   HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
224 {
225   FIXME("(%p, %p, %s, %d): stub\n",
226     lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
227   );
228   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
229   return FALSE;
230 }
231
232 /***********************************************************************
233  *           OleUIPromptUserA (OLEDLG.10)
234  */
235 INT __cdecl OleUIPromptUserA(
236   INT nTemplate, HWND hwndParent, ...)
237 {
238   FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
239   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
240   return OLEUI_FALSE;
241 }
242
243 /***********************************************************************
244  *           OleUIPromptUserW (OLEDLG.13)
245  */
246 INT __cdecl OleUIPromptUserW(
247   INT nTemplate, HWND hwndParent, ...)
248 {
249   FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
250   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
251   return OLEUI_FALSE;
252 }
253
254 /***********************************************************************
255  *           OleUIObjectPropertiesA (OLEDLG.11)
256  */
257 UINT WINAPI OleUIObjectPropertiesA(
258   LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
259 {
260   FIXME("(%p): stub\n", lpOleUIObjectProps);
261   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
262   return OLEUI_FALSE;
263 }
264
265 /***********************************************************************
266  *           OleUIObjectPropertiesW (OLEDLG.21)
267  */
268 UINT WINAPI OleUIObjectPropertiesW(
269   LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
270 {
271   FIXME("(%p): stub\n", lpOleUIObjectProps);
272   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
273   return OLEUI_FALSE;
274 }
275
276 /***********************************************************************
277  *           OleUIChangeSourceA (OLEDLG.12)
278  */
279 UINT WINAPI OleUIChangeSourceA(
280   LPOLEUICHANGESOURCEA lpOleUIChangeSource)
281 {
282   FIXME("(%p): stub\n", lpOleUIChangeSource);
283   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
284   return OLEUI_FALSE;
285 }
286
287 /***********************************************************************
288  *           OleUIChangeSourceW (OLEDLG.17)
289  */
290 UINT WINAPI OleUIChangeSourceW(
291   LPOLEUICHANGESOURCEW lpOleUIChangeSource)
292 {
293   FIXME("(%p): stub\n", lpOleUIChangeSource);
294   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
295   return OLEUI_FALSE;
296 }