2 * Declarations for OLEDLG
4 * Copyright (C) the Wine project
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.
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.
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
21 #ifndef __WINE_OLEDLG_H
22 #define __WINE_OLEDLG_H
34 typedef struct IOleUILinkContainerA IOleUILinkContainerA, *POLEUILINKCONTAINERA, *LPOLEUILINKCONTAINERA;
35 typedef struct IOleUILinkContainerW IOleUILinkContainerW, *POLEUILINKCONTAINERW, *LPOLEUILINKCONTAINERW;
37 typedef struct IOleUILinkInfoA IOleUILinkInfoA, *POLEUILINKINFOA, *LPOLEUILINKINFOA;
38 typedef struct IOleUILinkInfoW IOleUILinkInfoW, *POLEUILINKINFOW, *LPOLEUILINKINFOW;
40 typedef struct IOleUIObjInfoA IOleUIObjInfoA, *POLEUIOBJINFOA, *LPOLEUIOBJINFOA;
41 typedef struct IOleUIObjInfoW IOleUIObjInfoW, *POLEUIOBJINFOW, *LPOLEUIOBJINFOW;
43 #define IDC_OLEUIHELP 99
45 /* Change Source Dialog flags */
46 #define CSF_SHOWHELP 0x00000001L
47 #define CSF_VALIDSOURCE 0x00000002L
48 #define CSF_ONLYGETSOURCE 0x00000004L
49 #define CSF_EXPLORER 0x00000008L
51 #define PSF_SHOWHELP 0x00000001L
52 #define PSF_SELECTPASTE 0x00000002L
53 #define PSF_SELECTPASTELINK 0x00000004L
54 #define PSF_CHECKDISPLAYASICON 0x00000008L
55 #define PSF_DISABLEDISPLAYASICON 0x00000010L
56 #define PSF_HIDECHANGEICON 0x00000020L
57 #define PSF_STAYONCLIPBOARDCHANGE 0x00000040L
58 #define PSF_NOREFRESHDATAOBJECT 0x00000080L
60 #define IOF_SHOWHELP 0x00000001L
61 #define IOF_SELECTCREATENEW 0x00000002L
62 #define IOF_SELECTCREATEFROMFILE 0x00000004L
63 #define IOF_CHECKLINK 0x00000008L
64 #define IOF_CHECKDISPLAYASICON 0x00000010L
65 #define IOF_CREATENEWOBJECT 0x00000020L
66 #define IOF_CREATEFILEOBJECT 0x00000040L
67 #define IOF_CREATELINKOBJECT 0x00000080L
68 #define IOF_DISABLELINK 0x00000100L
69 #define IOF_VERIFYSERVERSEXIST 0x00000200L
70 #define IOF_DISABLEDISPLAYASICON 0x00000400L
71 #define IOF_HIDECHANGEICON 0x00000800L
72 #define IOF_SHOWINSERTCONTROL 0x00001000L
73 #define IOF_SELECTCREATECONTROL 0x00002000L
75 #define CF_SHOWHELPBUTTON 0x00000001L
76 #define CF_SETCONVERTDEFAULT 0x00000002L
77 #define CF_SETACTIVATEDEFAULT 0x00000004L
78 #define CF_SELECTCONVERTTO 0x00000008L
79 #define CF_SELECTACTIVATEAS 0x00000010L
80 #define CF_DISABLEDISPLAYASICON 0x00000020L
81 #define CF_DISABLEACTIVATEAS 0x00000040L
82 #define CF_HIDECHANGEICON 0x00000080L
83 #define CF_CONVERTONLY 0x00000100L
85 #define CIF_SHOWHELP 0x00000001L
86 #define CIF_SELECTCURRENT 0x00000002L
87 #define CIF_SELECTDEFAULT 0x00000004L
88 #define CIF_SELECTFROMFILE 0x00000008L
89 #define CIF_USEICONEXE 0x00000010L
91 #define BZ_DISABLECANCELBUTTON 0x00000001L
92 #define BZ_DISABLESWITCHTOBUTTON 0x00000002L
93 #define BZ_DISABLERETRYBUTTON 0x00000004L
94 #define BZ_NOTRESPONDINGDIALOG 0x00000008L
96 #define OLEUI_ERR_STANDARDMAX 116
98 #define OLEUI_BZERR_HTASKINVALID (OLEUI_ERR_STANDARDMAX+0)
99 #define OLEUI_BZ_SWITCHTOSELECTED (OLEUI_ERR_STANDARDMAX+1)
100 #define OLEUI_BZ_RETRYSELECTED (OLEUI_ERR_STANDARDMAX+2)
101 #define OLEUI_BZ_CALLUNBLOCKED (OLEUI_ERR_STANDARDMAX+3)
103 #define OLEUI_FALSE 0
104 #define OLEUI_SUCCESS 1 /* Same as OLEUI_OK */
105 #define OLEUI_OK 1 /* OK button pressed */
106 #define OLEUI_CANCEL 2 /* Cancel button pressed */
108 #define OPF_OBJECTISLINK 0x00000001L
109 #define OPF_NOFILLDEFAULT 0x00000002L
110 #define OPF_SHOWHELP 0x00000004L
111 #define OPF_DISABLECONVERT 0x00000008L
113 typedef UINT (CALLBACK *LPFNOLEUIHOOK)(HWND, UINT, WPARAM, LPARAM);
115 /*****************************************************************************
116 * INSERT OBJECT DIALOG
118 typedef struct tagOLEUIINSERTOBJECTA
124 LPFNOLEUIHOOK lpfnHook;
133 LPCLSID lpClsidExclude;
136 LPFORMATETC lpFormatEtc;
137 LPOLECLIENTSITE lpIOleClientSite;
138 LPSTORAGE lpIStorage;
142 } OLEUIINSERTOBJECTA, *POLEUIINSERTOBJECTA, *LPOLEUIINSERTOBJECTA;
144 typedef struct tagOLEUIINSERTOBJECTW
150 LPFNOLEUIHOOK lpfnHook;
153 LPCWSTR lpszTemplate;
159 LPCLSID lpClsidExclude;
162 LPFORMATETC lpFormatEtc;
163 LPOLECLIENTSITE lpIOleClientSite;
164 LPSTORAGE lpIStorage;
168 } OLEUIINSERTOBJECTW, *POLEUIINSERTOBJECTW, *LPOLEUIINSERTOBJECTW;
170 DECL_WINELIB_TYPE_AW(OLEUIINSERTOBJECT)
171 DECL_WINELIB_TYPE_AW(POLEUIINSERTOBJECT)
172 DECL_WINELIB_TYPE_AW(LPOLEUIINSERTOBJECT)
175 /*****************************************************************************
178 typedef struct tagOLEUICONVERTA
184 LPFNOLEUIHOOK lpfnHook;
190 CLSID clsidConvertDefault;
191 CLSID clsidActivateDefault;
195 BOOL fIsLinkedObject;
198 BOOL fObjectsIconChanged;
201 LPCLSID lpClsidExclude;
202 } OLEUICONVERTA, *POLEUICONVERTA, *LPOLEUICONVERTA;
204 typedef struct tagOLEUICONVERTW
210 LPFNOLEUIHOOK lpfnHook;
213 LPCWSTR lpszTemplate;
216 CLSID clsidConvertDefault;
217 CLSID clsidActivateDefault;
221 BOOL fIsLinkedObject;
224 BOOL fObjectsIconChanged;
227 LPCLSID lpClsidExclude;
228 } OLEUICONVERTW, *POLEUICONVERTW, *LPOLEUICONVERTW;
230 DECL_WINELIB_TYPE_AW(OLEUICONVERT)
231 DECL_WINELIB_TYPE_AW(POLEUICONVERT)
232 DECL_WINELIB_TYPE_AW(LPOLEUICONVERT)
234 /*****************************************************************************
237 typedef struct tagOLEUICHANGEICONA
243 LPFNOLEUIHOOK lpfnHook;
250 CHAR szIconExe[MAX_PATH];
252 } OLEUICHANGEICONA, *POLEUICHANGEICONA, *LPOLEUICHANGEICONA;
254 typedef struct tagOLEUICHANGEICONW
260 LPFNOLEUIHOOK lpfnHook;
263 LPCWSTR lpszTemplate;
267 WCHAR szIconExe[MAX_PATH];
269 } OLEUICHANGEICONW, *POLEUICHANGEICONW, *LPOLEUICHANGEICONW;
271 DECL_WINELIB_TYPE_AW(OLEUICHANGEICON)
272 DECL_WINELIB_TYPE_AW(POLEUICHANGEICON)
273 DECL_WINELIB_TYPE_AW(LPOLEUICHANGEICON)
276 /*****************************************************************************
277 * PASTE SPECIAL DIALOG
280 typedef enum tagOLEUIPASTEFLAG
282 OLEUIPASTE_ENABLEICON = 2048,
283 OLEUIPASTE_PASTEONLY = 0,
284 OLEUIPASTE_PASTE = 512,
285 OLEUIPASTE_LINKANYTYPE = 1024,
286 OLEUIPASTE_LINKTYPE1 = 1,
287 OLEUIPASTE_LINKTYPE2 = 2,
288 OLEUIPASTE_LINKTYPE3 = 4,
289 OLEUIPASTE_LINKTYPE4 = 8,
290 OLEUIPASTE_LINKTYPE5 = 16,
291 OLEUIPASTE_LINKTYPE6 = 32,
292 OLEUIPASTE_LINKTYPE7 = 64,
293 OLEUIPASTE_LINKTYPE8 = 128
296 typedef struct tagOLEUIPASTEENTRYA
299 LPCSTR lpstrFormatName;
300 LPCSTR lpstrResultText;
302 DWORD dwScratchSpace;
303 } OLEUIPASTEENTRYA, *POLEUIPASTEENTRYA, *LPOLEUIPASTEENTRYA;
305 typedef struct tagOLEUIPASTEENTRYW
308 LPCWSTR lpstrFormatName;
309 LPCWSTR lpstrResultText;
311 DWORD dwScratchSpace;
312 } OLEUIPASTEENTRYW, *POLEUIPASTEENTRYW, *LPOLEUIPASTEENTRYW;
314 DECL_WINELIB_TYPE_AW(OLEUIPASTEENTRY)
315 DECL_WINELIB_TYPE_AW(POLEUIPASTEENTRY)
316 DECL_WINELIB_TYPE_AW(LPOLEUIPASTEENTRY)
318 typedef struct tagOLEUIPASTESPECIALA
324 LPFNOLEUIHOOK lpfnHook;
329 LPDATAOBJECT lpSrcDataObj;
330 LPOLEUIPASTEENTRYA arrPasteEntries;
335 LPCLSID lpClsidExclude;
340 } OLEUIPASTESPECIALA, *POLEUIPASTESPECIALA, *LPOLEUIPASTESPECIALA;
342 typedef struct tagOLEUIPASTESPECIALW
348 LPFNOLEUIHOOK lpfnHook;
351 LPCWSTR lpszTemplate;
353 LPDATAOBJECT lpSrcDataObj;
354 LPOLEUIPASTEENTRYW arrPasteEntries;
359 LPCLSID lpClsidExclude;
364 } OLEUIPASTESPECIALW, *POLEUIPASTESPECIALW, *LPOLEUIPASTESPECIALW;
366 DECL_WINELIB_TYPE_AW(OLEUIPASTESPECIAL)
367 DECL_WINELIB_TYPE_AW(POLEUIPASTESPECIAL)
368 DECL_WINELIB_TYPE_AW(LPOLEUIPASTESPECIAL)
370 #define PSF_SHOWHELP 0x00000001L
371 #define PSF_SELECTPASTE 0x00000002L
372 #define PSF_SELECTPASTELINK 0x00000004L
374 #define PSF_CHECKDISPLAYASICON 0x00000008L
375 #define PSF_DISABLEDISPLAYASICON 0x00000010L
376 #define PSF_HIDECHANGEICON 0x00000020L
377 #define PSF_STAYONCLIPBOARDCHANGE 0x00000040L
378 #define PSF_NOREFRESHDATAOBJECT 0x00000080L
380 #define OLEUI_IOERR_SRCDATAOBJECTINVALID (OLEUI_ERR_STANDARDMAX+0)
381 #define OLEUI_IOERR_ARRPASTEENTRIESINVALID (OLEUI_ERR_STANDARDMAX+1)
382 #define OLEUI_IOERR_ARRLINKTYPESINVALID (OLEUI_ERR_STANDARDMAX+2)
383 #define OLEUI_PSERR_CLIPBOARDCHANGED (OLEUI_ERR_STANDARDMAX+3)
384 #define OLEUI_PSERR_GETCLIPBOARDFAILED (OLEUI_ERR_STANDARDMAX+4)
386 #define ELF_SHOWHELP 0x00000001L
387 #define ELF_DISABLEUPDATENOW 0x00000002L
388 #define ELF_DISABLEOPENSOURCE 0x00000004L
389 #define ELF_DISABLECHANGESOURCE 0x00000008L
390 #define ELF_DISABLECANCELLINK 0x00000010L
392 typedef struct tagOLEUIEDITLINKSW
398 LPFNOLEUIHOOK lpfnHook;
401 LPCWSTR lpszTemplate;
403 LPOLEUILINKCONTAINERW lpOleUILinkContainer;
404 } OLEUIEDITLINKSW, *POLEUIEDITLINKSW, *LPOLEUIEDITLINKSW;
406 typedef struct tagOLEUIEDITLINKSA
412 LPFNOLEUIHOOK lpfnHook;
417 LPOLEUILINKCONTAINERA lpOleUILinkContainer;
418 } OLEUIEDITLINKSA, *POLEUIEDITLINKSA, *LPOLEUIEDITLINKSA;
420 DECL_WINELIB_TYPE_AW(OLEUIEDITLINKS)
421 DECL_WINELIB_TYPE_AW(POLEUIEDITLINKS)
422 DECL_WINELIB_TYPE_AW(LPOLEUIEDITLINKS)
425 /***********************************************************************************
428 typedef struct tagOLEUIBUSYA
434 LPFNOLEUIHOOK lpfnHook;
441 } OLEUIBUSYA, *POLEUIBUSYA, *LPOLEUIBUSYA;
443 typedef struct tagOLEUIBUSYW
449 LPFNOLEUIHOOK lpfnHook;
452 LPCWSTR lpszTemplate;
456 } OLEUIBUSYW, *POLEUIBUSYW, *LPOLEUIBUSYW;
458 DECL_WINELIB_TYPE_AW(OLEUIBUSY)
459 DECL_WINELIB_TYPE_AW(POLEUIBUSY)
460 DECL_WINELIB_TYPE_AW(LPOLEUIBUSY)
463 struct tagOLEUIOBJECTPROPSW;
464 struct tagOLEUIOBJECTPROPSA;
466 typedef struct tagOLEUIGNRLPROPSA
470 DWORD dwReserved1[2];
471 LPFNOLEUIHOOK lpfnHook;
473 DWORD dwReserved2[3];
474 struct tagOLEUIOBJECTPROPSA* lpOP;
476 } OLEUIGNRLPROPSA, *POLEUIGNRLPROPSA, *LPOLEUIGNRLPROPSA;
478 typedef struct tagOLEUIGNRLPROPSW
482 DWORD dwReserved1[2];
483 LPFNOLEUIHOOK lpfnHook;
485 DWORD dwReserved2[3];
486 struct tagOLEUIOBJECTPROPSW* lpOP;
487 } OLEUIGNRLPROPSW, *POLEUIGNRLPROPSW, *LPOLEUIGNRLPROPSW;
489 DECL_WINELIB_TYPE_AW(OLEUIGNRLPROPS)
490 DECL_WINELIB_TYPE_AW(POLEUIGNRLPROPS)
491 DECL_WINELIB_TYPE_AW(LPOLEUIGNRLPROPS)
493 typedef struct tagOLEUIVIEWPROPSA
497 DWORD dwReserved1[2];
498 LPFNOLEUIHOOK lpfnHook;
500 DWORD dwReserved2[3];
501 struct tagOLEUIOBJECTPROPSA* lpOP;
504 } OLEUIVIEWPROPSA, *POLEUIVIEWPROPSA, *LPOLEUIVIEWPROPSA;
506 typedef struct tagOLEUIVIEWPROPSW
510 DWORD dwReserved1[2];
511 LPFNOLEUIHOOK lpfnHook;
513 DWORD dwReserved2[3];
514 struct tagOLEUIOBJECTPROPSW* lpOP;
517 } OLEUIVIEWPROPSW, *POLEUIVIEWPROPSW, *LPOLEUIVIEWPROPSW;
519 DECL_WINELIB_TYPE_AW(OLEUIVIEWPROPS)
520 DECL_WINELIB_TYPE_AW(POLEUIVIEWPROPS)
521 DECL_WINELIB_TYPE_AW(LPOLEUIVIEWPROPS)
524 #define VPF_SELECTRELATIVE 0x00000001L
525 #define VPF_DISABLERELATIVE 0x00000002L
526 #define VPF_DISABLESCALE 0x00000004L
528 typedef struct tagOLEUILINKPROPSA
532 DWORD dwReserved1[2];
533 LPFNOLEUIHOOK lpfnHook;
535 DWORD dwReserved2[3];
536 struct tagOLEUIOBJECTPROPSA* lpOP;
537 } OLEUILINKPROPSA, *POLEUILINKPROPSA, *LPOLEUILINKPROPSA;
539 typedef struct tagOLEUILINKPROPSW
543 DWORD dwReserved1[2];
544 LPFNOLEUIHOOK lpfnHook;
546 DWORD dwReserved2[3];
547 struct tagOLEUIOBJECTPROPSW* lpOP;
548 } OLEUILINKPROPSW, *POLEUILINKPROPSW, *LPOLEUILINKPROPSW;
550 DECL_WINELIB_TYPE_AW(OLEUILINKPROPS)
551 DECL_WINELIB_TYPE_AW(POLEUILINKPROPS)
552 DECL_WINELIB_TYPE_AW(LPOLEUILINKPROPS)
554 typedef struct tagOLEUIOBJECTPROPSA
558 LPPROPSHEETHEADERA lpPS;
560 LPOLEUIOBJINFOA lpObjInfo;
562 LPOLEUILINKINFOA lpLinkInfo;
563 LPOLEUIGNRLPROPSA lpGP;
564 LPOLEUIVIEWPROPSA lpVP;
565 LPOLEUILINKPROPSA lpLP;
566 } OLEUIOBJECTPROPSA, *POLEUIOBJECTPROPSA, *LPOLEUIOBJECTPROPSA;
568 typedef struct tagOLEUIOBJECTPROPSW
572 LPPROPSHEETHEADERW lpPS;
574 LPOLEUIOBJINFOW lpObjInfo;
576 LPOLEUILINKINFOW lpLinkInfo;
577 LPOLEUIGNRLPROPSW lpGP;
578 LPOLEUIVIEWPROPSW lpVP;
579 LPOLEUILINKPROPSW lpLP;
580 } OLEUIOBJECTPROPSW, *POLEUIOBJECTPROPSW, *LPOLEUIOBJECTPROPSW;
582 DECL_WINELIB_TYPE_AW(OLEUIOBJECTPROPS)
583 DECL_WINELIB_TYPE_AW(POLEUIOBJECTPROPS)
584 DECL_WINELIB_TYPE_AW(LPOLEUIOBJECTPROPS)
586 /************************************************************************************
587 * CHANGE SOURCE DIALOG
591 typedef struct tagOLEUICHANGESOURCEW
597 LPFNOLEUIHOOK lpfnHook;
600 LPCWSTR lpszTemplate;
603 DWORD dwReserved1[4];
604 LPOLEUILINKCONTAINERW lpOleUILinkContainer;
606 LPWSTR lpszDisplayName;
610 } OLEUICHANGESOURCEW, *POLEUICHANGESOURCEW, *LPOLEUICHANGESOURCEW;
613 typedef struct tagOLEUICHANGESOURCEA
619 LPFNOLEUIHOOK lpfnHook;
624 OPENFILENAMEA* lpOFN;
625 DWORD dwReserved1[4];
626 LPOLEUILINKCONTAINERA lpOleUILinkContainer;
628 LPSTR lpszDisplayName;
632 } OLEUICHANGESOURCEA, *POLEUICHANGESOURCEA, *LPOLEUICHANGESOURCEA;
635 DECL_WINELIB_TYPE_AW(OLEUICHANGESOURCE)
636 DECL_WINELIB_TYPE_AW(POLEUICHANGESOURCE)
637 DECL_WINELIB_TYPE_AW(LPOLEUICHANGESOURCE)
640 /*****************************************************************************
641 * IOleUILinkContainer interface
643 #define INTERFACE IOleUILinkContainerA
644 #define IOleUILinkContainerA_METHODS \
646 STDMETHOD_(DWORD,GetNextLink)(THIS_ DWORD dwLink) PURE; \
647 STDMETHOD(SetLinkUpdateOptions)(THIS_ DWORD dwLink, DWORD dwUpdateOpt) PURE; \
648 STDMETHOD(GetLinkUpdateOptions)(THIS_ DWORD dwLink, DWORD *lpdwUpdateOpt) PURE; \
649 STDMETHOD(SetLinkSource)(THIS_ DWORD dwLink, LPSTR lpszDisplayName, \
650 ULONG lenFileName, ULONG *pchEaten, BOOL fValidateSource) PURE; \
651 STDMETHOD(GetLinkSource)(THIS_ DWORD dwLink, LPSTR *lplpszDisplayName, ULONG *lplenFileName, \
652 LPSTR *lplpszFullLinkType, LPSTR *lplpszShortLinkType, \
653 BOOL *lpfSourceAvailable, BOOL *lpfIsSelected) PURE; \
654 STDMETHOD(OpenLinkSource)(THIS_ DWORD dwLink) PURE; \
655 STDMETHOD(UpdateLink)(THIS_ DWORD dwLink, BOOL fErrorMessage, BOOL fReserved) PURE; \
656 STDMETHOD(CancelLink)(THIS_ DWORD dwLink) PURE;
657 ICOM_DEFINE(IOleUILinkContainerA, IUnknown)
660 #define INTERFACE IOleUILinkContainerW
661 #define IOleUILinkContainerW_METHODS \
663 STDMETHOD_(DWORD,GetNextLink)(THIS_ DWORD dwLink) PURE; \
664 STDMETHOD(SetLinkUpdateOptions)(THIS_ DWORD dwLink, DWORD dwUpdateOpt) PURE; \
665 STDMETHOD(GetLinkUpdateOptions)(THIS_ DWORD dwLink, DWORD *lpdwUpdateOpt) PURE; \
666 STDMETHOD(SetLinkSource)(THIS_ DWORD dwLink, LPWSTR lpszDisplayName, \
667 ULONG lenFileName, ULONG *pchEaten, BOOL fValidateSource) PURE; \
668 STDMETHOD(GetLinkSource)(THIS_ DWORD dwLink, LPWSTR *lplpszDisplayName, ULONG *lplenFileName, \
669 LPWSTR *lplpszFullLinkType, LPWSTR *lplpszShortLinkType, \
670 BOOL *lpfSourceAvailable, BOOL *lpfIsSelected) PURE; \
671 STDMETHOD(OpenLinkSource)(THIS_ DWORD dwLink) PURE; \
672 STDMETHOD(UpdateLink)(THIS_ DWORD dwLink, BOOL fErrorMessage, BOOL fReserved) PURE; \
673 STDMETHOD(CancelLink)(THIS_ DWORD dwLink) PURE;
674 ICOM_DEFINE(IOleUILinkContainerW, IUnknown)
677 DECL_WINELIB_TYPE_AW(IOleUILinkContainer)
678 DECL_WINELIB_TYPE_AW(POLEUILINKCONTAINER)
679 DECL_WINELIB_TYPE_AW(LPOLEUILINKCONTAINER)
682 /*** IUnknown methods ***/
683 #define IOleUILinkContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
684 #define IOleUILinkContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
685 #define IOleUILinkContainer_Release(p) (p)->lpVtbl->Release(p)
686 /*** IOleUILinkContainer methods ***/
687 #define IOleUILinkContainer_GetNextLink(p,a) (p)->lpVtbl->GetNextLink(p,a)
688 #define IOleUILinkContainer_SetLinkUpdateOptions(p,a,b) (p)->lpVtbl->SetLinkUpdateOptions(p,a,b)
689 #define IOleUILinkContainer_GetLinkUpdateOptions(p,a,b) (p)->lpVtbl->GetLinkUpdateOptions(p,a,b)
690 #define IOleUILinkContainer_SetLinkSource(p,a,b,c,d,e) (p)->lpVtbl->SetLinkSource(p,a,b,c,d,e)
691 #define IOleUILinkContainer_GetLinkSource(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetLinkSource(p,a,b,c,d,e,f,g)
692 #define IOleUILinkContainer_OpenLinkSource(p,a) (p)->lpVtbl->OpenLinkSource(p,a)
693 #define IOleUILinkContainer_UpdateLink(p,a,b,c) (p)->lpVtbl->UpdateLink(p,a,b,c)
694 #define IOleUILinkContainer_CancelLink(p,a) (p)->lpVtbl->CancelLink(p,a)
698 /*****************************************************************************
699 * IOleUILinkInfo interface
701 #define INTERFACE IOleUILinkInfoA
702 #define IOleUILinkInfoA_METHODS \
703 IOleUILinkContainerA_METHODS \
704 STDMETHOD(GetLastUpdate)(THIS_ DWORD dwLink, FILETIME *lpLastUpdate) PURE;
705 ICOM_DEFINE(IOleUILinkInfoA, IOleUILinkContainerA)
708 #define INTERFACE IOleUILinkInfoW
709 #define IOleUILinkInfoW_METHODS \
710 IOleUILinkContainerW_METHODS \
711 STDMETHOD(GetLastUpdate)(THIS_ DWORD dwLink, FILETIME *lpLastUpdate) PURE;
712 ICOM_DEFINE(IOleUILinkInfoW, IOleUILinkContainerW)
715 DECL_WINELIB_TYPE_AW(IOleUILinkInfo)
716 DECL_WINELIB_TYPE_AW(POLEUILINKINFO)
717 DECL_WINELIB_TYPE_AW(LPOLEUILINKINFO)
720 /*** IUnknown methods ***/
721 #define IOleUILinkInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
722 #define IOleUILinkInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
723 #define IOleUILinkInfo_Release(p) (p)->lpVtbl->Release(p)
724 /*** IOleUILinkContainer methods ***/
725 #define IOleUILinkInfo_GetNextLink(p,a) (p)->lpVtbl->GetNextLink(p,a)
726 #define IOleUILinkInfo_SetLinkUpdateOptions(p,a,b) (p)->lpVtbl->SetLinkUpdateOptions(p,a,b)
727 #define IOleUILinkInfo_GetLinkUpdateOptions(p,a,b) (p)->lpVtbl->GetLinkUpdateOptions(p,a,b)
728 #define IOleUILinkInfo_SetLinkSource(p,a,b,c,d,e) (p)->lpVtbl->SetLinkSource(p,a,b,c,d,e)
729 #define IOleUILinkInfo_GetLinkSource(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetLinkSource(p,a,b,c,d,e,f,g)
730 #define IOleUILinkInfo_OpenLinkSource(p,a) (p)->lpVtbl->OpenLinkSource(p,a)
731 #define IOleUILinkInfo_UpdateLink(p,a,b,c) (p)->lpVtbl->UpdateLink(p,a,b,c)
732 #define IOleUILinkInfo_CancelLink(p,a) (p)->lpVtbl->CancelLink(p,a)
733 /*** IOleUILinkInfo methods ***/
734 #define IOleUILinkInfo_GetLastUpdate(p,a,b) (p)->lpVtbl->GetLastUpdate(p,a,b)
738 /*****************************************************************************
739 * IOleUIObjInfo interface
741 #define INTERFACE IOleUIObjInfoA
742 #define IOleUIObjInfoA_METHODS \
744 STDMETHOD(GetObjectInfo)(THIS_ DWORD dwObject, DWORD *lpdwObjSize, LPSTR *lplpszLabel, \
745 LPSTR *lplpszType, LPSTR *lplpszShortType, LPSTR *lplpszLocation) PURE; \
746 STDMETHOD(GetConvertInfo)(THIS_ DWORD dwObject, CLSID *lpClassID, WORD *lpwFormat, \
747 CLSID *lpConvertDefaultClassID, LPCLSID *lplpClsidExclude, UINT *lpcClsidExclude) PURE; \
748 STDMETHOD(ConvertObject)(THIS_ DWORD dwObject, REFCLSID clsidNew) PURE; \
749 STDMETHOD(GetViewInfo)(THIS_ DWORD dwObject, HGLOBAL *phMetaPict, DWORD *pdvAspect, INT *pnCurrentScale) PURE; \
750 STDMETHOD(SetViewInfo)(THIS_ DWORD dwObject, HGLOBAL hMetaPict, DWORD dvAspect, \
751 INT nCurrentScale, BOOL bRelativeToOrig) PURE;
752 ICOM_DEFINE(IOleUIObjInfoA, IUnknown)
755 #define INTERFACE IOleUIObjInfoW
756 #define IOleUIObjInfoW_METHODS \
758 STDMETHOD(GetObjectInfo)(THIS_ DWORD dwObject, DWORD *lpdwObjSize, LPWSTR *lplpszLabel, \
759 LPWSTR *lplpszType, LPWSTR *lplpszShortType, LPWSTR *lplpszLocation) PURE; \
760 STDMETHOD(GetConvertInfo)(THIS_ DWORD dwObject, CLSID *lpClassID, WORD *lpwFormat, \
761 CLSID *lpConvertDefaultClassID, LPCLSID *lplpClsidExclude, UINT *lpcClsidExclude) PURE; \
762 STDMETHOD(ConvertObject)(THIS_ DWORD dwObject, REFCLSID clsidNew) PURE; \
763 STDMETHOD(GetViewInfo)(THIS_ DWORD dwObject, HGLOBAL *phMetaPict, DWORD *pdvAspect, INT *pnCurrentScale) PURE; \
764 STDMETHOD(SetViewInfo)(THIS_ DWORD dwObject, HGLOBAL hMetaPict, DWORD dvAspect, \
765 INT nCurrentScale, BOOL bRelativeToOrig) PURE;
766 ICOM_DEFINE(IOleUIObjInfoW, IUnknown)
769 DECL_WINELIB_TYPE_AW(IOleUIObjInfo)
770 DECL_WINELIB_TYPE_AW(POLEUIOBJINFO)
771 DECL_WINELIB_TYPE_AW(LPOLEUIOBJINFO)
774 /*** IUnknown methods ***/
775 #define IOleUIObjInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
776 #define IOleUIObjInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
777 #define IOleUIObjInfo_Release(p) (p)->lpVtbl->Release(p)
778 /*** IOleUIObjInfo methods ***/
779 #define IOleUIObjInfo_GetObjectInfo(p,a,b,c,d,e,f) (p)->lpVtbl->GetObjectInfo(p,a,b,c,d,e,f)
780 #define IOleUIObjInfo_GetConvertInfo(p,a,b,c,d,e,f) (p)->lpVtbl->GetConvertInfo(p,a,b,c,d,e,f)
781 #define IOleUIObjInfo_ConvertObject(p,a,b) (p)->lpVtbl->ConvertObject(p,a,b)
782 #define IOleUIObjInfo_GetViewInfo(p,a,b,c,d) (p)->lpVtbl->GetViewInfo(p,a,b,c,d)
783 #define IOleUIObjInfo_SetViewInfo(p,a,b,c,d,e) (p)->lpVtbl->SetViewInfo(p,a,b,c,d,e)
786 UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW);
787 UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA);
788 #define OleUIInsertObject WINELIB_NAME_AW(OleUIInsertObject)
789 UINT WINAPI OleUIConvertA(LPOLEUICONVERTA);
790 UINT WINAPI OleUIConvertW(LPOLEUICONVERTW);
791 #define OleUIConvert WINELIB_NAME_AW(OleUIConvert)
792 UINT WINAPI OleUIChangeIconA(LPOLEUICHANGEICONA);
793 UINT WINAPI OleUIChangeIconW(LPOLEUICHANGEICONW);
794 #define OleUIChangeIcon WINELIB_NAME_AW(OleUIChangeIcon)
795 UINT WINAPI OleUIBusyA(LPOLEUIBUSYA);
796 UINT WINAPI OleUIBusyW(LPOLEUIBUSYW);
797 #define OleUIBusy WINELIB_NAME_AW(OleUIBusy)
798 UINT WINAPI OleUIObjectPropertiesA(LPOLEUIOBJECTPROPSA);
799 UINT WINAPI OleUIObjectPropertiesW(LPOLEUIOBJECTPROPSW);
800 #define OleUIObjectProperties WINELIB_NAME_AW(OleUIObjectProperties)
801 UINT WINAPI OleUIChangeSourceW(LPOLEUICHANGESOURCEW);
802 UINT WINAPI OleUIChangeSourceA(LPOLEUICHANGESOURCEA);
803 #define OleUIChangeSource WINELIB_NAME_AW(OleUIChangeSource)
804 UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks);
805 UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks);
806 #define OleUIEditLinks WINELIB_NAME_AW(OleUIEditLinks)
807 BOOL WINAPI OleUIUpdateLinksA(LPOLEUILINKCONTAINERA lpOleUILinkCntr, HWND hwndParent, LPSTR lpszTitle, INT cLinks);
808 BOOL WINAPI OleUIUpdateLinksW(LPOLEUILINKCONTAINERW lpOleUILinkCntr, HWND hwndParent, LPWSTR lpszTitle, INT cLinks);
809 #define OleUIUpdateLinks WINELIB_NAME_AW(OleUIUpdateLinks)
810 BOOL WINAPI OleUIAddVerbMenuA(LPOLEOBJECT lpOleObj, LPCSTR lpszShortType, HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
811 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu);
812 BOOL WINAPI OleUIAddVerbMenuW(LPOLEOBJECT lpOleObj, LPCWSTR lpszShortType, HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
813 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu);
814 #define OleUIAddVerbMenu WINELIB_NAME_AW(OleUIAddVerbMenu)
815 UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial);
816 UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial);
817 #define OleUIPasteSpecial WINELIB_NAME_AW(OleUIPasteSpecial)
825 #endif /* __WINE_OLEDLG_H */