1c2c66affSColin Finck /*
2c2c66affSColin Finck * OLEDLG library
3c2c66affSColin Finck *
4c2c66affSColin Finck * Copyright 1998 Patrik Stridvall
5c2c66affSColin Finck *
6c2c66affSColin Finck * This library is free software; you can redistribute it and/or
7c2c66affSColin Finck * modify it under the terms of the GNU Lesser General Public
8c2c66affSColin Finck * License as published by the Free Software Foundation; either
9c2c66affSColin Finck * version 2.1 of the License, or (at your option) any later version.
10c2c66affSColin Finck *
11c2c66affSColin Finck * This library is distributed in the hope that it will be useful,
12c2c66affSColin Finck * but WITHOUT ANY WARRANTY; without even the implied warranty of
13c2c66affSColin Finck * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14c2c66affSColin Finck * Lesser General Public License for more details.
15c2c66affSColin Finck *
16c2c66affSColin Finck * You should have received a copy of the GNU Lesser General Public
17c2c66affSColin Finck * License along with this library; if not, write to the Free Software
18c2c66affSColin Finck * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19c2c66affSColin Finck */
20c2c66affSColin Finck
218b391603SAmine Khaldi #define COBJMACROS
228b391603SAmine Khaldi
238b391603SAmine Khaldi #include <stdarg.h>
248b391603SAmine Khaldi
258b391603SAmine Khaldi #include "windef.h"
268b391603SAmine Khaldi #include "winbase.h"
278b391603SAmine Khaldi #include "winerror.h"
288b391603SAmine Khaldi #include "wingdi.h"
298b391603SAmine Khaldi #include "winuser.h"
308b391603SAmine Khaldi #include "oledlg.h"
318b391603SAmine Khaldi #include "ole2.h"
32c2c66affSColin Finck #include "oledlg_private.h"
338b391603SAmine Khaldi #include "resource.h"
348b391603SAmine Khaldi
358b391603SAmine Khaldi #include "wine/debug.h"
36c2c66affSColin Finck
37c2c66affSColin Finck WINE_DEFAULT_DEBUG_CHANNEL(ole);
38c2c66affSColin Finck
39c2c66affSColin Finck HINSTANCE OLEDLG_hInstance = 0;
40c2c66affSColin Finck
41c2c66affSColin Finck UINT cf_embed_source;
42c2c66affSColin Finck UINT cf_embedded_object;
43c2c66affSColin Finck UINT cf_link_source;
44c2c66affSColin Finck UINT cf_object_descriptor;
45c2c66affSColin Finck UINT cf_link_src_descriptor;
46c2c66affSColin Finck UINT cf_ownerlink;
47c2c66affSColin Finck UINT cf_filename;
48c2c66affSColin Finck UINT cf_filenamew;
49c2c66affSColin Finck
50c2c66affSColin Finck UINT oleui_msg_help;
51c2c66affSColin Finck UINT oleui_msg_enddialog;
52c2c66affSColin Finck
register_clipboard_formats(void)53c2c66affSColin Finck static void register_clipboard_formats(void)
54c2c66affSColin Finck {
55c2c66affSColin Finck /* These used to be declared in olestd.h, but that seems to have been removed from the api */
56c2c66affSColin Finck static const WCHAR CF_EMBEDSOURCEW[] = { 'E','m','b','e','d',' ','S','o','u','r','c','e',0 };
57c2c66affSColin Finck static const WCHAR CF_EMBEDDEDOBJECTW[] = { 'E','m','b','e','d','d','e','d',' ','O','b','j','e','c','t',0 };
58c2c66affSColin Finck static const WCHAR CF_LINKSOURCEW[] = { 'L','i','n','k',' ','S','o','u','r','c','e',0 };
59c2c66affSColin Finck static const WCHAR CF_OBJECTDESCRIPTORW[] = { 'O','b','j','e','c','t',' ','D','e','s','c','r','i','p','t','o','r',0 };
60c2c66affSColin Finck static const WCHAR CF_LINKSRCDESCRIPTORW[] = { 'L','i','n','k',' ','S','o','u','r','c','e',' ','D','e','s','c','r','i','p','t','o','r',0 };
61c2c66affSColin Finck static const WCHAR CF_OWNERLINKW[] = { 'O','w','n','e','r','L','i','n','k',0 };
62c2c66affSColin Finck static const WCHAR CF_FILENAMEW[] = { 'F','i','l','e','N','a','m','e',0 };
63c2c66affSColin Finck static const WCHAR CF_FILENAMEWW[] = { 'F','i','l','e','N','a','m','e','W',0 };
64c2c66affSColin Finck
65c2c66affSColin Finck /* Load in the same order as native to make debugging easier */
66c2c66affSColin Finck cf_object_descriptor = RegisterClipboardFormatW(CF_OBJECTDESCRIPTORW);
67c2c66affSColin Finck cf_link_src_descriptor = RegisterClipboardFormatW(CF_LINKSRCDESCRIPTORW);
68c2c66affSColin Finck cf_embed_source = RegisterClipboardFormatW(CF_EMBEDSOURCEW);
69c2c66affSColin Finck cf_embedded_object = RegisterClipboardFormatW(CF_EMBEDDEDOBJECTW);
70c2c66affSColin Finck cf_link_source = RegisterClipboardFormatW(CF_LINKSOURCEW);
71c2c66affSColin Finck cf_ownerlink = RegisterClipboardFormatW(CF_OWNERLINKW);
72c2c66affSColin Finck cf_filename = RegisterClipboardFormatW(CF_FILENAMEW);
73c2c66affSColin Finck cf_filenamew = RegisterClipboardFormatW(CF_FILENAMEWW);
74c2c66affSColin Finck }
75c2c66affSColin Finck
register_messages(void)76c2c66affSColin Finck static void register_messages(void)
77c2c66affSColin Finck {
78c2c66affSColin Finck oleui_msg_help = RegisterWindowMessageW(SZOLEUI_MSG_HELPW);
79c2c66affSColin Finck oleui_msg_enddialog = RegisterWindowMessageW(SZOLEUI_MSG_ENDDIALOGW);
80c2c66affSColin Finck }
81c2c66affSColin Finck
82c2c66affSColin Finck /***********************************************************************
83c2c66affSColin Finck * DllMain
84c2c66affSColin Finck */
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID fImpLoad)85c2c66affSColin Finck BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
86c2c66affSColin Finck {
87c2c66affSColin Finck TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
88c2c66affSColin Finck
89c2c66affSColin Finck switch(fdwReason) {
90c2c66affSColin Finck case DLL_PROCESS_ATTACH:
91c2c66affSColin Finck DisableThreadLibraryCalls(hinstDLL);
92c2c66affSColin Finck OLEDLG_hInstance = hinstDLL;
93c2c66affSColin Finck register_clipboard_formats();
94c2c66affSColin Finck register_messages();
95c2c66affSColin Finck break;
96c2c66affSColin Finck }
97c2c66affSColin Finck return TRUE;
98c2c66affSColin Finck }
99c2c66affSColin Finck
100c2c66affSColin Finck
101c2c66affSColin Finck /***********************************************************************
102c2c66affSColin Finck * OleUIAddVerbMenuA (OLEDLG.1)
103c2c66affSColin Finck */
OleUIAddVerbMenuA(IOleObject * object,LPCSTR shorttype,HMENU hMenu,UINT uPos,UINT uIDVerbMin,UINT uIDVerbMax,BOOL addConvert,UINT idConvert,HMENU * lphMenu)104c2c66affSColin Finck BOOL WINAPI OleUIAddVerbMenuA(IOleObject *object, LPCSTR shorttype,
105c2c66affSColin Finck HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
106c2c66affSColin Finck BOOL addConvert, UINT idConvert, HMENU *lphMenu)
107c2c66affSColin Finck {
108c2c66affSColin Finck WCHAR *shorttypeW = NULL;
109c2c66affSColin Finck BOOL ret;
110c2c66affSColin Finck
111c2c66affSColin Finck TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_a(shorttype),
112c2c66affSColin Finck hMenu, uPos, uIDVerbMin, uIDVerbMax, addConvert, idConvert, lphMenu);
113c2c66affSColin Finck
114c2c66affSColin Finck if (shorttype)
115c2c66affSColin Finck {
116c2c66affSColin Finck INT len = MultiByteToWideChar(CP_ACP, 0, shorttype, -1, NULL, 0);
117c2c66affSColin Finck shorttypeW = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
118c2c66affSColin Finck if (shorttypeW)
119c2c66affSColin Finck MultiByteToWideChar(CP_ACP, 0, shorttype, -1, shorttypeW, len);
120c2c66affSColin Finck }
121c2c66affSColin Finck
122c2c66affSColin Finck ret = OleUIAddVerbMenuW(object, shorttypeW, hMenu, uPos, uIDVerbMin, uIDVerbMax,
123c2c66affSColin Finck addConvert, idConvert, lphMenu);
124c2c66affSColin Finck HeapFree(GetProcessHeap(), 0, shorttypeW);
125c2c66affSColin Finck return ret;
126c2c66affSColin Finck }
127c2c66affSColin Finck
is_verb_in_range(const OLEVERB * verb,UINT idmin,UINT idmax)128c2c66affSColin Finck static inline BOOL is_verb_in_range(const OLEVERB *verb, UINT idmin, UINT idmax)
129c2c66affSColin Finck {
130c2c66affSColin Finck if (idmax == 0) return TRUE;
131c2c66affSColin Finck return (verb->lVerb + idmin <= idmax);
132c2c66affSColin Finck }
133c2c66affSColin Finck
get_next_insertable_verb(IEnumOLEVERB * enumverbs,UINT idmin,UINT idmax,OLEVERB * verb)134c2c66affSColin Finck static HRESULT get_next_insertable_verb(IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
135c2c66affSColin Finck {
136c2c66affSColin Finck memset(verb, 0, sizeof(*verb));
137c2c66affSColin Finck
138c2c66affSColin Finck while (IEnumOLEVERB_Next(enumverbs, 1, verb, NULL) == S_OK) {
139c2c66affSColin Finck if (is_verb_in_range(verb, idmin, idmax) && (verb->grfAttribs & OLEVERBATTRIB_ONCONTAINERMENU))
140c2c66affSColin Finck return S_OK;
141c2c66affSColin Finck
142c2c66affSColin Finck CoTaskMemFree(verb->lpszVerbName);
143c2c66affSColin Finck memset(verb, 0, sizeof(*verb));
144c2c66affSColin Finck }
145c2c66affSColin Finck
146c2c66affSColin Finck return S_FALSE;
147c2c66affSColin Finck }
148c2c66affSColin Finck
insert_verb_to_menu(HMENU menu,UINT idmin,const OLEVERB * verb)149c2c66affSColin Finck static void insert_verb_to_menu(HMENU menu, UINT idmin, const OLEVERB *verb)
150c2c66affSColin Finck {
151c2c66affSColin Finck InsertMenuW(menu, ~0, verb->fuFlags | MF_BYPOSITION | MF_STRING, verb->lVerb + idmin, verb->lpszVerbName);
152c2c66affSColin Finck }
153c2c66affSColin Finck
154c2c66affSColin Finck /***********************************************************************
155c2c66affSColin Finck * OleUIAddVerbMenuW (OLEDLG.14)
156c2c66affSColin Finck */
OleUIAddVerbMenuW(IOleObject * object,LPCWSTR shorttype,HMENU hMenu,UINT uPos,UINT idmin,UINT idmax,BOOL addConvert,UINT idConvert,HMENU * ret_submenu)157c2c66affSColin Finck BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype,
158c2c66affSColin Finck HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
159c2c66affSColin Finck {
160c2c66affSColin Finck IEnumOLEVERB *enumverbs = NULL;
161c2c66affSColin Finck LPOLESTR usertype = NULL;
162c2c66affSColin Finck OLEVERB firstverb, verb;
163c2c66affSColin Finck WCHAR *objecttype;
164c2c66affSColin Finck WCHAR resstrW[32]; /* should be enough */
165c2c66affSColin Finck DWORD_PTR args[2];
166c2c66affSColin Finck BOOL singleverb;
167c2c66affSColin Finck HMENU submenu;
168c2c66affSColin Finck WCHAR *str;
169c2c66affSColin Finck
170c2c66affSColin Finck TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_w(shorttype),
171c2c66affSColin Finck hMenu, uPos, idmin, idmax, addConvert, idConvert, ret_submenu);
172c2c66affSColin Finck
173c2c66affSColin Finck if (ret_submenu)
174c2c66affSColin Finck *ret_submenu = NULL;
175c2c66affSColin Finck
176c2c66affSColin Finck if (!hMenu || !ret_submenu)
177c2c66affSColin Finck return FALSE;
178c2c66affSColin Finck
179c2c66affSColin Finck /* check if we can get verbs at all */
180c2c66affSColin Finck if (object)
181c2c66affSColin Finck IOleObject_EnumVerbs(object, &enumverbs);
182c2c66affSColin Finck
183*4abf2277SAmine Khaldi LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_OBJECT, resstrW, ARRAY_SIZE(resstrW));
184c2c66affSColin Finck /* no object, or object without enumeration support */
185c2c66affSColin Finck if (!object || !enumverbs) {
186c2c66affSColin Finck RemoveMenu(hMenu, uPos, MF_BYPOSITION);
187c2c66affSColin Finck InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING|MF_GRAYED, idmin, resstrW);
188c2c66affSColin Finck return FALSE;
189c2c66affSColin Finck }
190c2c66affSColin Finck
191c2c66affSColin Finck /* root entry string */
192c2c66affSColin Finck if (!shorttype && (IOleObject_GetUserType(object, USERCLASSTYPE_SHORT, &usertype) == S_OK))
193c2c66affSColin Finck objecttype = usertype;
194c2c66affSColin Finck else
195c2c66affSColin Finck objecttype = (WCHAR*)shorttype;
196c2c66affSColin Finck
197c2c66affSColin Finck /* iterate through verbs */
198c2c66affSColin Finck
199c2c66affSColin Finck /* find first suitable verb */
200c2c66affSColin Finck get_next_insertable_verb(enumverbs, idmin, idmax, &firstverb);
201c2c66affSColin Finck singleverb = get_next_insertable_verb(enumverbs, idmin, idmax, &verb) != S_OK;
202c2c66affSColin Finck
203c2c66affSColin Finck if (singleverb && !addConvert) {
204*4abf2277SAmine Khaldi LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_SINGLEVERB_OBJECT, resstrW, ARRAY_SIZE(resstrW));
205c2c66affSColin Finck
206c2c66affSColin Finck args[0] = (DWORD_PTR)firstverb.lpszVerbName;
207c2c66affSColin Finck args[1] = (DWORD_PTR)objecttype;
208c2c66affSColin Finck
209c2c66affSColin Finck FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_ARGUMENT_ARRAY,
210c2c66affSColin Finck resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
211c2c66affSColin Finck
212c2c66affSColin Finck RemoveMenu(hMenu, uPos, MF_BYPOSITION);
213c2c66affSColin Finck InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING, idmin, str);
214c2c66affSColin Finck CoTaskMemFree(firstverb.lpszVerbName);
215c2c66affSColin Finck HeapFree(GetProcessHeap(), 0, str);
216c2c66affSColin Finck IEnumOLEVERB_Release(enumverbs);
217c2c66affSColin Finck CoTaskMemFree(usertype);
218c2c66affSColin Finck return TRUE;
219c2c66affSColin Finck }
220c2c66affSColin Finck
221c2c66affSColin Finck submenu = CreatePopupMenu();
222c2c66affSColin Finck insert_verb_to_menu(submenu, idmin, &firstverb);
223c2c66affSColin Finck CoTaskMemFree(firstverb.lpszVerbName);
224c2c66affSColin Finck
225c2c66affSColin Finck if (!singleverb) {
226c2c66affSColin Finck insert_verb_to_menu(submenu, idmin, &verb);
227c2c66affSColin Finck CoTaskMemFree(verb.lpszVerbName);
228c2c66affSColin Finck }
229c2c66affSColin Finck
230c2c66affSColin Finck while (get_next_insertable_verb(enumverbs, idmin, idmax, &verb) == S_OK) {
231c2c66affSColin Finck insert_verb_to_menu(submenu, idmin, &verb);
232c2c66affSColin Finck CoTaskMemFree(verb.lpszVerbName);
233c2c66affSColin Finck }
234c2c66affSColin Finck
235c2c66affSColin Finck /* convert verb is at the bottom of a popup, separated from verbs */
236c2c66affSColin Finck if (addConvert) {
237*4abf2277SAmine Khaldi LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_CONVERT, resstrW, ARRAY_SIZE(resstrW));
238c2c66affSColin Finck InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_SEPARATOR, 0, NULL);
239c2c66affSColin Finck InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_STRING, idConvert, resstrW);
240c2c66affSColin Finck }
241c2c66affSColin Finck
242c2c66affSColin Finck if (submenu)
243c2c66affSColin Finck *ret_submenu = submenu;
244c2c66affSColin Finck
245c2c66affSColin Finck /* now submenu is ready, add root entry to original menu, attach submenu */
246*4abf2277SAmine Khaldi LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_OBJECT_WITH_NAME, resstrW, ARRAY_SIZE(resstrW));
247c2c66affSColin Finck
248c2c66affSColin Finck args[0] = (DWORD_PTR)objecttype;
249c2c66affSColin Finck FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_ARGUMENT_ARRAY,
250c2c66affSColin Finck resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
251c2c66affSColin Finck
252c2c66affSColin Finck InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_POPUP|MF_STRING, (UINT_PTR)submenu, str);
253c2c66affSColin Finck HeapFree(GetProcessHeap(), 0, str);
254c2c66affSColin Finck IEnumOLEVERB_Release(enumverbs);
255c2c66affSColin Finck CoTaskMemFree(usertype);
256c2c66affSColin Finck return TRUE;
257c2c66affSColin Finck }
258c2c66affSColin Finck
259c2c66affSColin Finck /***********************************************************************
260c2c66affSColin Finck * OleUICanConvertOrActivateAs (OLEDLG.2)
261c2c66affSColin Finck */
OleUICanConvertOrActivateAs(REFCLSID rClsid,BOOL fIsLinkedObject,WORD wFormat)262c2c66affSColin Finck BOOL WINAPI OleUICanConvertOrActivateAs(
263c2c66affSColin Finck REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
264c2c66affSColin Finck {
265c2c66affSColin Finck FIXME("(%p, %d, %hd): stub\n",
266c2c66affSColin Finck rClsid, fIsLinkedObject, wFormat
267c2c66affSColin Finck );
268c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
269c2c66affSColin Finck return FALSE;
270c2c66affSColin Finck }
271c2c66affSColin Finck
272c2c66affSColin Finck /***********************************************************************
273c2c66affSColin Finck * OleUIInsertObjectW (OLEDLG.20)
274c2c66affSColin Finck */
OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)275c2c66affSColin Finck UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
276c2c66affSColin Finck {
277c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIInsertObject);
278c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
279c2c66affSColin Finck return OLEUI_FALSE;
280c2c66affSColin Finck }
281c2c66affSColin Finck
282c2c66affSColin Finck /***********************************************************************
283c2c66affSColin Finck * OleUIEditLinksA (OLEDLG.5)
284c2c66affSColin Finck */
OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)285c2c66affSColin Finck UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
286c2c66affSColin Finck {
287c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIEditLinks);
288c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
289c2c66affSColin Finck return OLEUI_FALSE;
290c2c66affSColin Finck }
291c2c66affSColin Finck
292c2c66affSColin Finck /***********************************************************************
293c2c66affSColin Finck * OleUIEditLinksW (OLEDLG.19)
294c2c66affSColin Finck */
OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)295c2c66affSColin Finck UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
296c2c66affSColin Finck {
297c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIEditLinks);
298c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
299c2c66affSColin Finck return OLEUI_FALSE;
300c2c66affSColin Finck }
301c2c66affSColin Finck
302c2c66affSColin Finck /***********************************************************************
303c2c66affSColin Finck * OleUIChangeIconA (OLEDLG.6)
304c2c66affSColin Finck */
OleUIChangeIconA(LPOLEUICHANGEICONA lpOleUIChangeIcon)305c2c66affSColin Finck UINT WINAPI OleUIChangeIconA(
306c2c66affSColin Finck LPOLEUICHANGEICONA lpOleUIChangeIcon)
307c2c66affSColin Finck {
308c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIChangeIcon);
309c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
310c2c66affSColin Finck return OLEUI_FALSE;
311c2c66affSColin Finck }
312c2c66affSColin Finck
313c2c66affSColin Finck /***********************************************************************
314c2c66affSColin Finck * OleUIChangeIconW (OLEDLG.16)
315c2c66affSColin Finck */
OleUIChangeIconW(LPOLEUICHANGEICONW lpOleUIChangeIcon)316c2c66affSColin Finck UINT WINAPI OleUIChangeIconW(
317c2c66affSColin Finck LPOLEUICHANGEICONW lpOleUIChangeIcon)
318c2c66affSColin Finck {
319c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIChangeIcon);
320c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
321c2c66affSColin Finck return OLEUI_FALSE;
322c2c66affSColin Finck }
323c2c66affSColin Finck
324c2c66affSColin Finck /***********************************************************************
325c2c66affSColin Finck * OleUIConvertA (OLEDLG.7)
326c2c66affSColin Finck */
OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)327c2c66affSColin Finck UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
328c2c66affSColin Finck {
329c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIConvert);
330c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
331c2c66affSColin Finck return OLEUI_FALSE;
332c2c66affSColin Finck }
333c2c66affSColin Finck
334c2c66affSColin Finck /***********************************************************************
335c2c66affSColin Finck * OleUIConvertW (OLEDLG.18)
336c2c66affSColin Finck */
OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)337c2c66affSColin Finck UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
338c2c66affSColin Finck {
339c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIConvert);
340c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
341c2c66affSColin Finck return OLEUI_FALSE;
342c2c66affSColin Finck }
343c2c66affSColin Finck
344c2c66affSColin Finck /***********************************************************************
345c2c66affSColin Finck * OleUIBusyA (OLEDLG.8)
346c2c66affSColin Finck */
OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)347c2c66affSColin Finck UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
348c2c66affSColin Finck {
349c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIBusy);
350c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
351c2c66affSColin Finck return OLEUI_FALSE;
352c2c66affSColin Finck }
353c2c66affSColin Finck
354c2c66affSColin Finck /***********************************************************************
355c2c66affSColin Finck * OleUIBusyW (OLEDLG.15)
356c2c66affSColin Finck */
OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)357c2c66affSColin Finck UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
358c2c66affSColin Finck {
359c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIBusy);
360c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
361c2c66affSColin Finck return OLEUI_FALSE;
362c2c66affSColin Finck }
363c2c66affSColin Finck
364c2c66affSColin Finck /***********************************************************************
365c2c66affSColin Finck * OleUIUpdateLinksA (OLEDLG.9)
366c2c66affSColin Finck */
OleUIUpdateLinksA(LPOLEUILINKCONTAINERA lpOleUILinkCntr,HWND hwndParent,LPSTR lpszTitle,INT cLinks)367c2c66affSColin Finck BOOL WINAPI OleUIUpdateLinksA(
368c2c66affSColin Finck LPOLEUILINKCONTAINERA lpOleUILinkCntr,
369c2c66affSColin Finck HWND hwndParent, LPSTR lpszTitle, INT cLinks)
370c2c66affSColin Finck {
371c2c66affSColin Finck FIXME("(%p, %p, %s, %d): stub\n",
372c2c66affSColin Finck lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
373c2c66affSColin Finck );
374c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
375c2c66affSColin Finck return FALSE;
376c2c66affSColin Finck }
377c2c66affSColin Finck
378c2c66affSColin Finck /***********************************************************************
379c2c66affSColin Finck * OleUIUpdateLinksW (OLEDLG.23)
380c2c66affSColin Finck */
OleUIUpdateLinksW(LPOLEUILINKCONTAINERW lpOleUILinkCntr,HWND hwndParent,LPWSTR lpszTitle,INT cLinks)381c2c66affSColin Finck BOOL WINAPI OleUIUpdateLinksW(
382c2c66affSColin Finck LPOLEUILINKCONTAINERW lpOleUILinkCntr,
383c2c66affSColin Finck HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
384c2c66affSColin Finck {
385c2c66affSColin Finck FIXME("(%p, %p, %s, %d): stub\n",
386c2c66affSColin Finck lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
387c2c66affSColin Finck );
388c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
389c2c66affSColin Finck return FALSE;
390c2c66affSColin Finck }
391c2c66affSColin Finck
392c2c66affSColin Finck /***********************************************************************
393c2c66affSColin Finck * OleUIPromptUserA (OLEDLG.10)
394c2c66affSColin Finck */
OleUIPromptUserA(INT nTemplate,HWND hwndParent,...)395c2c66affSColin Finck INT WINAPIV OleUIPromptUserA(
396c2c66affSColin Finck INT nTemplate, HWND hwndParent, ...)
397c2c66affSColin Finck {
398c2c66affSColin Finck FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
399c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
400c2c66affSColin Finck return OLEUI_FALSE;
401c2c66affSColin Finck }
402c2c66affSColin Finck
403c2c66affSColin Finck /***********************************************************************
404c2c66affSColin Finck * OleUIPromptUserW (OLEDLG.13)
405c2c66affSColin Finck */
OleUIPromptUserW(INT nTemplate,HWND hwndParent,...)406c2c66affSColin Finck INT WINAPIV OleUIPromptUserW(
407c2c66affSColin Finck INT nTemplate, HWND hwndParent, ...)
408c2c66affSColin Finck {
409c2c66affSColin Finck FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
410c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
411c2c66affSColin Finck return OLEUI_FALSE;
412c2c66affSColin Finck }
413c2c66affSColin Finck
414c2c66affSColin Finck /***********************************************************************
415c2c66affSColin Finck * OleUIObjectPropertiesA (OLEDLG.11)
416c2c66affSColin Finck */
OleUIObjectPropertiesA(LPOLEUIOBJECTPROPSA lpOleUIObjectProps)417c2c66affSColin Finck UINT WINAPI OleUIObjectPropertiesA(
418c2c66affSColin Finck LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
419c2c66affSColin Finck {
420c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIObjectProps);
421c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
422c2c66affSColin Finck return OLEUI_FALSE;
423c2c66affSColin Finck }
424c2c66affSColin Finck
425c2c66affSColin Finck /***********************************************************************
426c2c66affSColin Finck * OleUIObjectPropertiesW (OLEDLG.21)
427c2c66affSColin Finck */
OleUIObjectPropertiesW(LPOLEUIOBJECTPROPSW lpOleUIObjectProps)428c2c66affSColin Finck UINT WINAPI OleUIObjectPropertiesW(
429c2c66affSColin Finck LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
430c2c66affSColin Finck {
431c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIObjectProps);
432c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
433c2c66affSColin Finck return OLEUI_FALSE;
434c2c66affSColin Finck }
435c2c66affSColin Finck
436c2c66affSColin Finck /***********************************************************************
437c2c66affSColin Finck * OleUIChangeSourceA (OLEDLG.12)
438c2c66affSColin Finck */
OleUIChangeSourceA(LPOLEUICHANGESOURCEA lpOleUIChangeSource)439c2c66affSColin Finck UINT WINAPI OleUIChangeSourceA(
440c2c66affSColin Finck LPOLEUICHANGESOURCEA lpOleUIChangeSource)
441c2c66affSColin Finck {
442c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIChangeSource);
443c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
444c2c66affSColin Finck return OLEUI_FALSE;
445c2c66affSColin Finck }
446c2c66affSColin Finck
447c2c66affSColin Finck /***********************************************************************
448c2c66affSColin Finck * OleUIChangeSourceW (OLEDLG.17)
449c2c66affSColin Finck */
OleUIChangeSourceW(LPOLEUICHANGESOURCEW lpOleUIChangeSource)450c2c66affSColin Finck UINT WINAPI OleUIChangeSourceW(
451c2c66affSColin Finck LPOLEUICHANGESOURCEW lpOleUIChangeSource)
452c2c66affSColin Finck {
453c2c66affSColin Finck FIXME("(%p): stub\n", lpOleUIChangeSource);
454c2c66affSColin Finck SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
455c2c66affSColin Finck return OLEUI_FALSE;
456c2c66affSColin Finck }
457