2 * Defines the COM interfaces and APIs related to OLE picture support.
4 * Depends on 'obj_base.h'.
7 #ifndef __WINE_WINE_OBJ_PICTURE_H
8 #define __WINE_WINE_OBJ_PICTURE_H
10 #include "wine/obj_base.h"
11 #include "wine/obj_oleaut.h"
17 #endif /* defined(__cplusplus) */
19 /*****************************************************************************
20 * Predeclare the structures
22 typedef UINT OLE_HANDLE
;
23 typedef LONG OLE_XPOS_HIMETRIC
;
24 typedef LONG OLE_YPOS_HIMETRIC
;
25 typedef LONG OLE_XSIZE_HIMETRIC
;
26 typedef LONG OLE_YSIZE_HIMETRIC
;
30 /*****************************************************************************
31 * Predeclare the interfaces
33 DEFINE_GUID(IID_IPicture
, 0x7bf80980, 0xbf32, 0x101a, 0x8b, 0xbb, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
34 typedef struct IPicture IPicture
, *LPPICTURE
;
36 DEFINE_GUID(IID_IPictureDisp
, 0x7bf80981, 0xbf32, 0x101a, 0x8b, 0xbb, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
37 typedef struct IPictureDisp IPictureDisp
, *LPPICTUREDISP
;
39 /*****************************************************************************
42 #define ICOM_INTERFACE IPicture
43 #define IPicture_METHODS \
44 ICOM_METHOD1(HRESULT,get_Handle, OLE_HANDLE*,pHandle) \
45 ICOM_METHOD1(HRESULT,get_hPal, OLE_HANDLE*,phPal) \
46 ICOM_METHOD1(HRESULT,get_Type, SHORT*,pType) \
47 ICOM_METHOD1(HRESULT,get_Width, OLE_XSIZE_HIMETRIC*,pWidth) \
48 ICOM_METHOD1(HRESULT,get_Height, OLE_YSIZE_HIMETRIC*,pHeight) \
49 ICOM_METHOD10(HRESULT,Render, HDC,hdc, LONG,x, LONG,y, LONG,cx, LONG,cy, OLE_XPOS_HIMETRIC,xSrc, OLE_YPOS_HIMETRIC,ySrc, OLE_XSIZE_HIMETRIC,cxSrc, OLE_YSIZE_HIMETRIC,cySrc, LPCRECT,pRcWBounds) \
50 ICOM_METHOD1(HRESULT,set_hPal, OLE_HANDLE,hPal) \
51 ICOM_METHOD1(HRESULT,get_CurDC, HDC*,phDC) \
52 ICOM_METHOD3(HRESULT,SelectPicture, HDC,hDCIn, HDC*,phDCOut, OLE_HANDLE*,phBmpOut) \
53 ICOM_METHOD1(HRESULT,get_KeepOriginalFormat, BOOL*,pKeep) \
54 ICOM_METHOD1(HRESULT,put_KeepOriginalFormat, BOOL,Keep) \
55 ICOM_METHOD (HRESULT,PictureChanged) \
56 ICOM_METHOD3(HRESULT,SaveAsFile, LPSTREAM,pStream, BOOL,fSaveMemCopy, LONG*,pCbSize) \
57 ICOM_METHOD1(HRESULT,get_Attributes, DWORD*,pDwAttr)
58 #define IPicture_IMETHODS \
61 ICOM_DEFINE(IPicture
,IUnknown
)
64 /*** IUnknown methods ***/
65 #define IPicture_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
66 #define IPicture_AddRef(p) ICOM_CALL (AddRef,p)
67 #define IPicture_Release(p) ICOM_CALL (Release,p)
68 /*** IPicture methods ***/
69 #define IPicture_get_Handle(p,a) ICOM_CALL1(get_Handle,p,a)
70 #define IPicture_get_hPal(p,a) ICOM_CALL1(get_hPal,p,a)
71 #define IPicture_get_Type(p,a) ICOM_CALL1(get_Type,p,a)
72 #define IPicture_get_Width(p,a) ICOM_CALL1(get_Width,p,a)
73 #define IPicture_get_Height(p,a) ICOM_CALL1(get_Height,p,a)
74 #define IPicture_Render(p,a,b,c,d,e,f,g,h,i,j) ICOM_CALL10(Render,p,a,b,c,d,e,f,g,h,i,j)
75 #define IPicture_set_hPal(p,a) ICOM_CALL1(set_hPal,p,a)
76 #define IPicture_get_CurDC(p,a) ICOM_CALL1(get_CurDC,p,a)
77 #define IPicture_SelectPicture(p,a,b,c) ICOM_CALL3(SelectPicture,p,a,b,c)
78 #define IPicture_get_KeepOriginalFormat(p,a) ICOM_CALL1(get_KeepOriginalFormat,p,a)
79 #define IPicture_put_KeepOriginalFormat(p,a) ICOM_CALL1(put_KeepOriginalFormat,p,a)
80 #define IPicture_PictureChanged(p) ICOM_CALL (PictureChanged,p)
81 #define IPicture_SaveAsFile(p,a,b,c) ICOM_CALL3(SaveAsFile,p,a,b,c)
82 #define IPicture_get_Attributes(p,a) ICOM_CALL1(get_Attributes,p,a)
85 /*****************************************************************************
86 * IPictureDisp interface
88 #define ICOM_INTERFACE IPictureDisp
89 #define IPictureDisp_METHODS
90 #define IPictureDisp_IMETHODS \
93 ICOM_DEFINE(IPictureDisp
,IDispatch
)
96 /*** IUnknown methods ***/
97 #define IPictureDisp_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
98 #define IPictureDisp_AddRef(p) ICOM_CALL (AddRef,p)
99 #define IPictureDisp_Release(p) ICOM_CALL (Release,p)
100 /*** IDispatch methods ***/
101 #define IPictureDisp_GetTypeInfoCount(p,a) ICOM_CALL1 (GetTypeInfoCount,p,a)
102 #define IPictureDisp_GetTypeInfo(p,a,b,c) ICOM_CALL3 (GetTypeInfo,p,b,c)
103 #define IPictureDisp_GetIDsOfNames(p,a,b,c,d,e) ICOM_CALL5 (GetIDsOfNames,p,a,b,c,d,e)
104 #define IPictureDisp_Invoke(p,a,b,c,d,e,f,g,h) ICOM_CALL8 (Invoke,p,a,b,c,d,e,f,g,h)
105 /*** IPictureDisp methods ***/
109 #endif /* defined(__cplusplus) */
111 #endif /* __WINE_WINE_OBJ_PICTURE_H */