ReactOS  0.4.13-dev-73-gcfe54aa
oledlg_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "wingdi.h"
#include "winuser.h"
#include "oledlg.h"
#include "ole2.h"
#include "oledlg_private.h"
#include "resource.h"
#include "wine/debug.h"
#include "wine/unicode.h"
Include dependency graph for oledlg_main.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ole)
 
static void register_clipboard_formats (void)
 
static void register_messages (void)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
 
BOOL WINAPI OleUIAddVerbMenuA (IOleObject *object, LPCSTR shorttype, HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax, BOOL addConvert, UINT idConvert, HMENU *lphMenu)
 
static BOOL is_verb_in_range (const OLEVERB *verb, UINT idmin, UINT idmax)
 
static HRESULT get_next_insertable_verb (IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
 
static void insert_verb_to_menu (HMENU menu, UINT idmin, const OLEVERB *verb)
 
BOOL WINAPI OleUIAddVerbMenuW (IOleObject *object, LPCWSTR shorttype, HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
 
BOOL WINAPI OleUICanConvertOrActivateAs (REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
 
UINT WINAPI OleUIInsertObjectW (LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
 
UINT WINAPI OleUIEditLinksA (LPOLEUIEDITLINKSA lpOleUIEditLinks)
 
UINT WINAPI OleUIEditLinksW (LPOLEUIEDITLINKSW lpOleUIEditLinks)
 
UINT WINAPI OleUIChangeIconA (LPOLEUICHANGEICONA lpOleUIChangeIcon)
 
UINT WINAPI OleUIChangeIconW (LPOLEUICHANGEICONW lpOleUIChangeIcon)
 
UINT WINAPI OleUIConvertA (LPOLEUICONVERTA lpOleUIConvert)
 
UINT WINAPI OleUIConvertW (LPOLEUICONVERTW lpOleUIConvert)
 
UINT WINAPI OleUIBusyA (LPOLEUIBUSYA lpOleUIBusy)
 
UINT WINAPI OleUIBusyW (LPOLEUIBUSYW lpOleUIBusy)
 
BOOL WINAPI OleUIUpdateLinksA (LPOLEUILINKCONTAINERA lpOleUILinkCntr, HWND hwndParent, LPSTR lpszTitle, INT cLinks)
 
BOOL WINAPI OleUIUpdateLinksW (LPOLEUILINKCONTAINERW lpOleUILinkCntr, HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
 
INT WINAPIV OleUIPromptUserA (INT nTemplate, HWND hwndParent,...)
 
INT WINAPIV OleUIPromptUserW (INT nTemplate, HWND hwndParent,...)
 
UINT WINAPI OleUIObjectPropertiesA (LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
 
UINT WINAPI OleUIObjectPropertiesW (LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
 
UINT WINAPI OleUIChangeSourceA (LPOLEUICHANGESOURCEA lpOleUIChangeSource)
 
UINT WINAPI OleUIChangeSourceW (LPOLEUICHANGESOURCEW lpOleUIChangeSource)
 

Variables

HINSTANCE OLEDLG_hInstance = 0
 
UINT cf_embed_source
 
UINT cf_embedded_object
 
UINT cf_link_source
 
UINT cf_object_descriptor
 
UINT cf_link_src_descriptor
 
UINT cf_ownerlink
 
UINT cf_filename
 
UINT cf_filenamew
 
UINT oleui_msg_help
 
UINT oleui_msg_enddialog
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file oledlg_main.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  fImpLoad 
)

Definition at line 86 of file oledlg_main.c.

87 {
88  TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
89 
90  switch(fdwReason) {
91  case DLL_PROCESS_ATTACH:
92  DisableThreadLibraryCalls(hinstDLL);
93  OLEDLG_hInstance = hinstDLL;
96  break;
97  }
98  return TRUE;
99 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
#define TRACE(s)
Definition: solgame.cpp:4
HINSTANCE OLEDLG_hInstance
Definition: oledlg_main.c:40
DWORD LPVOID fImpLoad
Definition: misc.cpp:155
static void register_clipboard_formats(void)
Definition: oledlg_main.c:54
static void register_messages(void)
Definition: oledlg_main.c:77

◆ get_next_insertable_verb()

static HRESULT get_next_insertable_verb ( IEnumOLEVERB enumverbs,
UINT  idmin,
UINT  idmax,
OLEVERB *  verb 
)
static

Definition at line 135 of file oledlg_main.c.

136 {
137  memset(verb, 0, sizeof(*verb));
138 
139  while (IEnumOLEVERB_Next(enumverbs, 1, verb, NULL) == S_OK) {
140  if (is_verb_in_range(verb, idmin, idmax) && (verb->grfAttribs & OLEVERBATTRIB_ONCONTAINERMENU))
141  return S_OK;
142 
143  CoTaskMemFree(verb->lpszVerbName);
144  memset(verb, 0, sizeof(*verb));
145  }
146 
147  return S_FALSE;
148 }
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
static IEnumOLEVERB enumverbs
Definition: main.c:112
static BOOL is_verb_in_range(const OLEVERB *verb, UINT idmin, UINT idmax)
Definition: oledlg_main.c:129
#define S_FALSE
Definition: winerror.h:2357
smooth NULL
Definition: ftsmooth.c:416
#define S_OK
Definition: intsafe.h:59
#define memset(x, y, z)
Definition: compat.h:39

Referenced by OleUIAddVerbMenuW().

◆ insert_verb_to_menu()

static void insert_verb_to_menu ( HMENU  menu,
UINT  idmin,
const OLEVERB *  verb 
)
static

Definition at line 150 of file oledlg_main.c.

151 {
152  InsertMenuW(menu, ~0, verb->fuFlags | MF_BYPOSITION | MF_STRING, verb->lVerb + idmin, verb->lpszVerbName);
153 }
BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
#define MF_STRING
Definition: winuser.h:138
#define MF_BYPOSITION
Definition: winuser.h:203

Referenced by OleUIAddVerbMenuW().

◆ is_verb_in_range()

static BOOL is_verb_in_range ( const OLEVERB *  verb,
UINT  idmin,
UINT  idmax 
)
inlinestatic

Definition at line 129 of file oledlg_main.c.

130 {
131  if (idmax == 0) return TRUE;
132  return (verb->lVerb + idmin <= idmax);
133 }
#define TRUE
Definition: types.h:120

Referenced by get_next_insertable_verb().

◆ OleUIAddVerbMenuA()

BOOL WINAPI OleUIAddVerbMenuA ( IOleObject object,
LPCSTR  shorttype,
HMENU  hMenu,
UINT  uPos,
UINT  uIDVerbMin,
UINT  uIDVerbMax,
BOOL  addConvert,
UINT  idConvert,
HMENU lphMenu 
)

Definition at line 105 of file oledlg_main.c.

108 {
109  WCHAR *shorttypeW = NULL;
110  BOOL ret;
111 
112  TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_a(shorttype),
113  hMenu, uPos, uIDVerbMin, uIDVerbMax, addConvert, idConvert, lphMenu);
114 
115  if (shorttype)
116  {
117  INT len = MultiByteToWideChar(CP_ACP, 0, shorttype, -1, NULL, 0);
118  shorttypeW = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
119  if (shorttypeW)
120  MultiByteToWideChar(CP_ACP, 0, shorttype, -1, shorttypeW, len);
121  }
122 
123  ret = OleUIAddVerbMenuW(object, shorttypeW, hMenu, uPos, uIDVerbMin, uIDVerbMax,
124  addConvert, idConvert, lphMenu);
125  HeapFree(GetProcessHeap(), 0, shorttypeW);
126  return ret;
127 }
#define CP_ACP
Definition: compat.h:99
int32_t INT
Definition: typedefs.h:56
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
int ret
GLenum GLsizei len
Definition: glext.h:6722
#define MultiByteToWideChar
Definition: compat.h:100
#define HeapFree(x, y, z)
Definition: compat.h:394
BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype, HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
Definition: oledlg_main.c:158

◆ OleUIAddVerbMenuW()

BOOL WINAPI OleUIAddVerbMenuW ( IOleObject object,
LPCWSTR  shorttype,
HMENU  hMenu,
UINT  uPos,
UINT  idmin,
UINT  idmax,
BOOL  addConvert,
UINT  idConvert,
HMENU ret_submenu 
)

Definition at line 158 of file oledlg_main.c.

160 {
162  LPOLESTR usertype = NULL;
163  OLEVERB firstverb, verb;
164  WCHAR *objecttype;
165  WCHAR resstrW[32]; /* should be enough */
166  DWORD_PTR args[2];
167  BOOL singleverb;
168  HMENU submenu;
169  WCHAR *str;
170 
171  TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_w(shorttype),
172  hMenu, uPos, idmin, idmax, addConvert, idConvert, ret_submenu);
173 
174  if (ret_submenu)
175  *ret_submenu = NULL;
176 
177  if (!hMenu || !ret_submenu)
178  return FALSE;
179 
180  /* check if we can get verbs at all */
181  if (object)
182  IOleObject_EnumVerbs(object, &enumverbs);
183 
185  /* no object, or object without enumeration support */
186  if (!object || !enumverbs) {
187  RemoveMenu(hMenu, uPos, MF_BYPOSITION);
188  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING|MF_GRAYED, idmin, resstrW);
189  return FALSE;
190  }
191 
192  /* root entry string */
193  if (!shorttype && (IOleObject_GetUserType(object, USERCLASSTYPE_SHORT, &usertype) == S_OK))
194  objecttype = usertype;
195  else
196  objecttype = (WCHAR*)shorttype;
197 
198  /* iterate through verbs */
199 
200  /* find first suitable verb */
201  get_next_insertable_verb(enumverbs, idmin, idmax, &firstverb);
202  singleverb = get_next_insertable_verb(enumverbs, idmin, idmax, &verb) != S_OK;
203 
204  if (singleverb && !addConvert) {
206 
207  args[0] = (DWORD_PTR)firstverb.lpszVerbName;
208  args[1] = (DWORD_PTR)objecttype;
209 
211  resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
212 
213  RemoveMenu(hMenu, uPos, MF_BYPOSITION);
214  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING, idmin, str);
215  CoTaskMemFree(firstverb.lpszVerbName);
216  HeapFree(GetProcessHeap(), 0, str);
217  IEnumOLEVERB_Release(enumverbs);
218  CoTaskMemFree(usertype);
219  return TRUE;
220  }
221 
222  submenu = CreatePopupMenu();
223  insert_verb_to_menu(submenu, idmin, &firstverb);
224  CoTaskMemFree(firstverb.lpszVerbName);
225 
226  if (!singleverb) {
227  insert_verb_to_menu(submenu, idmin, &verb);
228  CoTaskMemFree(verb.lpszVerbName);
229  }
230 
231  while (get_next_insertable_verb(enumverbs, idmin, idmax, &verb) == S_OK) {
232  insert_verb_to_menu(submenu, idmin, &verb);
233  CoTaskMemFree(verb.lpszVerbName);
234  }
235 
236  /* convert verb is at the bottom of a popup, separated from verbs */
237  if (addConvert) {
239  InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_SEPARATOR, 0, NULL);
240  InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_STRING, idConvert, resstrW);
241  }
242 
243  if (submenu)
244  *ret_submenu = submenu;
245 
246  /* now submenu is ready, add root entry to original menu, attach submenu */
248 
249  args[0] = (DWORD_PTR)objecttype;
251  resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
252 
253  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_POPUP|MF_STRING, (UINT_PTR)submenu, str);
254  HeapFree(GetProcessHeap(), 0, str);
255  IEnumOLEVERB_Release(enumverbs);
256  CoTaskMemFree(usertype);
257  return TRUE;
258 }
static const char __ms_va_list
Definition: printf.c:70
#define TRUE
Definition: types.h:120
#define IDS_VERBMENU_OBJECT
Definition: resource.h:50
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
#define DWORD_PTR
Definition: treelist.c:76
BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
#define FORMAT_MESSAGE_ARGUMENT_ARRAY
Definition: winbase.h:405
#define FORMAT_MESSAGE_FROM_STRING
Definition: winbase.h:402
#define MF_STRING
Definition: winuser.h:138
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
static LPOLESTR
Definition: stg_prop.c:27
Definition: match.c:390
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
static IEnumOLEVERB enumverbs
Definition: main.c:112
static void insert_verb_to_menu(HMENU menu, UINT idmin, const OLEVERB *verb)
Definition: oledlg_main.c:150
unsigned int BOOL
Definition: ntddk_ex.h:94
#define MF_BYPOSITION
Definition: winuser.h:203
#define debugstr_w
Definition: kernel32.h:32
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
#define MF_SEPARATOR
Definition: winuser.h:137
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
static HRESULT get_next_insertable_verb(IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
Definition: oledlg_main.c:135
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define IDS_VERBMENU_OBJECT_WITH_NAME
Definition: resource.h:49
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
#define MF_POPUP
Definition: winuser.h:136
uint32_t DWORD_PTR
Definition: typedefs.h:63
HINSTANCE OLEDLG_hInstance
Definition: oledlg_main.c:40
#define S_OK
Definition: intsafe.h:59
#define ARRAY_SIZE(a)
Definition: main.h:24
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI CreatePopupMenu(void)
Definition: menu.c:846
#define MF_GRAYED
Definition: winuser.h:129
#define IDS_VERBMENU_CONVERT
Definition: resource.h:47
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
#define HeapFree(x, y, z)
Definition: compat.h:394
#define IDS_VERBMENU_SINGLEVERB_OBJECT
Definition: resource.h:48

Referenced by OleUIAddVerbMenuA(), and test_OleUIAddVerbMenu().

◆ OleUIBusyA()

UINT WINAPI OleUIBusyA ( LPOLEUIBUSYA  lpOleUIBusy)

Definition at line 348 of file oledlg_main.c.

349 {
350  FIXME("(%p): stub\n", lpOleUIBusy);
352  return OLEUI_FALSE;
353 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIBusyW()

UINT WINAPI OleUIBusyW ( LPOLEUIBUSYW  lpOleUIBusy)

Definition at line 358 of file oledlg_main.c.

359 {
360  FIXME("(%p): stub\n", lpOleUIBusy);
362  return OLEUI_FALSE;
363 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUICanConvertOrActivateAs()

BOOL WINAPI OleUICanConvertOrActivateAs ( REFCLSID  rClsid,
BOOL  fIsLinkedObject,
WORD  wFormat 
)

Definition at line 263 of file oledlg_main.c.

265 {
266  FIXME("(%p, %d, %hd): stub\n",
267  rClsid, fIsLinkedObject, wFormat
268  );
270  return FALSE;
271 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIChangeIconA()

UINT WINAPI OleUIChangeIconA ( LPOLEUICHANGEICONA  lpOleUIChangeIcon)

Definition at line 306 of file oledlg_main.c.

308 {
309  FIXME("(%p): stub\n", lpOleUIChangeIcon);
311  return OLEUI_FALSE;
312 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIChangeIconW()

UINT WINAPI OleUIChangeIconW ( LPOLEUICHANGEICONW  lpOleUIChangeIcon)

Definition at line 317 of file oledlg_main.c.

319 {
320  FIXME("(%p): stub\n", lpOleUIChangeIcon);
322  return OLEUI_FALSE;
323 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIChangeSourceA()

UINT WINAPI OleUIChangeSourceA ( LPOLEUICHANGESOURCEA  lpOleUIChangeSource)

Definition at line 440 of file oledlg_main.c.

442 {
443  FIXME("(%p): stub\n", lpOleUIChangeSource);
445  return OLEUI_FALSE;
446 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIChangeSourceW()

UINT WINAPI OleUIChangeSourceW ( LPOLEUICHANGESOURCEW  lpOleUIChangeSource)

Definition at line 451 of file oledlg_main.c.

453 {
454  FIXME("(%p): stub\n", lpOleUIChangeSource);
456  return OLEUI_FALSE;
457 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIConvertA()

UINT WINAPI OleUIConvertA ( LPOLEUICONVERTA  lpOleUIConvert)

Definition at line 328 of file oledlg_main.c.

329 {
330  FIXME("(%p): stub\n", lpOleUIConvert);
332  return OLEUI_FALSE;
333 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIConvertW()

UINT WINAPI OleUIConvertW ( LPOLEUICONVERTW  lpOleUIConvert)

Definition at line 338 of file oledlg_main.c.

339 {
340  FIXME("(%p): stub\n", lpOleUIConvert);
342  return OLEUI_FALSE;
343 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIEditLinksA()

UINT WINAPI OleUIEditLinksA ( LPOLEUIEDITLINKSA  lpOleUIEditLinks)

Definition at line 286 of file oledlg_main.c.

287 {
288  FIXME("(%p): stub\n", lpOleUIEditLinks);
290  return OLEUI_FALSE;
291 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIEditLinksW()

UINT WINAPI OleUIEditLinksW ( LPOLEUIEDITLINKSW  lpOleUIEditLinks)

Definition at line 296 of file oledlg_main.c.

297 {
298  FIXME("(%p): stub\n", lpOleUIEditLinks);
300  return OLEUI_FALSE;
301 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIInsertObjectW()

UINT WINAPI OleUIInsertObjectW ( LPOLEUIINSERTOBJECTW  lpOleUIInsertObject)

Definition at line 276 of file oledlg_main.c.

277 {
278  FIXME("(%p): stub\n", lpOleUIInsertObject);
280  return OLEUI_FALSE;
281 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIObjectPropertiesA()

UINT WINAPI OleUIObjectPropertiesA ( LPOLEUIOBJECTPROPSA  lpOleUIObjectProps)

Definition at line 418 of file oledlg_main.c.

420 {
421  FIXME("(%p): stub\n", lpOleUIObjectProps);
423  return OLEUI_FALSE;
424 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIObjectPropertiesW()

UINT WINAPI OleUIObjectPropertiesW ( LPOLEUIOBJECTPROPSW  lpOleUIObjectProps)

Definition at line 429 of file oledlg_main.c.

431 {
432  FIXME("(%p): stub\n", lpOleUIObjectProps);
434  return OLEUI_FALSE;
435 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIPromptUserA()

INT WINAPIV OleUIPromptUserA ( INT  nTemplate,
HWND  hwndParent,
  ... 
)

Definition at line 396 of file oledlg_main.c.

398 {
399  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
401  return OLEUI_FALSE;
402 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HWND hwndParent
Definition: cryptui.c:300
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIPromptUserW()

INT WINAPIV OleUIPromptUserW ( INT  nTemplate,
HWND  hwndParent,
  ... 
)

Definition at line 407 of file oledlg_main.c.

409 {
410  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
412  return OLEUI_FALSE;
413 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HWND hwndParent
Definition: cryptui.c:300
#define SetLastError(x)
Definition: compat.h:409
#define OLEUI_FALSE
Definition: oledlg.h:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIUpdateLinksA()

BOOL WINAPI OleUIUpdateLinksA ( LPOLEUILINKCONTAINERA  lpOleUILinkCntr,
HWND  hwndParent,
LPSTR  lpszTitle,
INT  cLinks 
)

Definition at line 368 of file oledlg_main.c.

371 {
372  FIXME("(%p, %p, %s, %d): stub\n",
373  lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
374  );
376  return FALSE;
377 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HWND hwndParent
Definition: cryptui.c:300
#define debugstr_a
Definition: kernel32.h:31
#define SetLastError(x)
Definition: compat.h:409
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ OleUIUpdateLinksW()

BOOL WINAPI OleUIUpdateLinksW ( LPOLEUILINKCONTAINERW  lpOleUILinkCntr,
HWND  hwndParent,
LPWSTR  lpszTitle,
INT  cLinks 
)

Definition at line 382 of file oledlg_main.c.

385 {
386  FIXME("(%p, %p, %s, %d): stub\n",
387  lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
388  );
390  return FALSE;
391 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HWND hwndParent
Definition: cryptui.c:300
#define SetLastError(x)
Definition: compat.h:409
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ register_clipboard_formats()

static void register_clipboard_formats ( void  )
static

Definition at line 54 of file oledlg_main.c.

55 {
56  /* These used to be declared in olestd.h, but that seems to have been removed from the api */
57  static const WCHAR CF_EMBEDSOURCEW[] = { 'E','m','b','e','d',' ','S','o','u','r','c','e',0 };
58  static const WCHAR CF_EMBEDDEDOBJECTW[] = { 'E','m','b','e','d','d','e','d',' ','O','b','j','e','c','t',0 };
59  static const WCHAR CF_LINKSOURCEW[] = { 'L','i','n','k',' ','S','o','u','r','c','e',0 };
60  static const WCHAR CF_OBJECTDESCRIPTORW[] = { 'O','b','j','e','c','t',' ','D','e','s','c','r','i','p','t','o','r',0 };
61  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 };
62  static const WCHAR CF_OWNERLINKW[] = { 'O','w','n','e','r','L','i','n','k',0 };
63  static const WCHAR CF_FILENAMEW[] = { 'F','i','l','e','N','a','m','e',0 };
64  static const WCHAR CF_FILENAMEWW[] = { 'F','i','l','e','N','a','m','e','W',0 };
65 
66  /* Load in the same order as native to make debugging easier */
67  cf_object_descriptor = RegisterClipboardFormatW(CF_OBJECTDESCRIPTORW);
68  cf_link_src_descriptor = RegisterClipboardFormatW(CF_LINKSRCDESCRIPTORW);
69  cf_embed_source = RegisterClipboardFormatW(CF_EMBEDSOURCEW);
70  cf_embedded_object = RegisterClipboardFormatW(CF_EMBEDDEDOBJECTW);
71  cf_link_source = RegisterClipboardFormatW(CF_LINKSOURCEW);
72  cf_ownerlink = RegisterClipboardFormatW(CF_OWNERLINKW);
73  cf_filename = RegisterClipboardFormatW(CF_FILENAMEW);
74  cf_filenamew = RegisterClipboardFormatW(CF_FILENAMEWW);
75 }
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
UINT cf_ownerlink
Definition: oledlg_main.c:47
UINT cf_link_src_descriptor
Definition: oledlg_main.c:46
UINT cf_filename
Definition: oledlg_main.c:48
UINT cf_filenamew
Definition: oledlg_main.c:49
__wchar_t WCHAR
Definition: xmlstorage.h:180
UINT cf_object_descriptor
Definition: oledlg_main.c:45
UINT cf_embed_source
Definition: oledlg_main.c:42
UINT cf_embedded_object
Definition: oledlg_main.c:43
UINT cf_link_source
Definition: oledlg_main.c:44

Referenced by DllMain().

◆ register_messages()

static void register_messages ( void  )
static

Definition at line 77 of file oledlg_main.c.

78 {
81 }
static const WCHAR SZOLEUI_MSG_HELPW[]
Definition: oledlg.h:120
UINT oleui_msg_enddialog
Definition: oledlg_main.c:52
UINT oleui_msg_help
Definition: oledlg_main.c:51
static const WCHAR SZOLEUI_MSG_ENDDIALOGW[]
Definition: oledlg.h:121
UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR)

Referenced by DllMain().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ole  )

Variable Documentation

◆ cf_embed_source

UINT cf_embed_source

Definition at line 42 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ cf_embedded_object

UINT cf_embedded_object

Definition at line 43 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ cf_filename

UINT cf_filename

Definition at line 48 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ cf_filenamew

UINT cf_filenamew

Definition at line 49 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ cf_link_source

UINT cf_link_source

Definition at line 44 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ cf_link_src_descriptor

UINT cf_link_src_descriptor

Definition at line 46 of file oledlg_main.c.

Referenced by get_descriptors(), and register_clipboard_formats().

◆ cf_object_descriptor

UINT cf_object_descriptor

Definition at line 45 of file oledlg_main.c.

Referenced by get_descriptors(), and register_clipboard_formats().

◆ cf_ownerlink

UINT cf_ownerlink

Definition at line 47 of file oledlg_main.c.

Referenced by register_clipboard_formats().

◆ OLEDLG_hInstance

◆ oleui_msg_enddialog

UINT oleui_msg_enddialog

Definition at line 52 of file oledlg_main.c.

Referenced by ps_dlg_proc(), register_messages(), and send_end_dialog_msg().

◆ oleui_msg_help

UINT oleui_msg_help

Definition at line 51 of file oledlg_main.c.

Referenced by post_help_msg(), and register_messages().