2 * Defines the COM interfaces and APIs related to ViewObject
6 #ifndef __WINE_WINE_OBJ_OLEVIEW_H
7 #define __WINE_WINE_OBJ_OLEVIEW_H
13 #endif /* defined(__cplusplus) */
15 /*****************************************************************************
16 * Declare the structures
20 /*****************************************************************************
21 * Predeclare the interfaces
24 DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
25 typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
27 DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
28 typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
30 /*****************************************************************************
31 * IViewObject interface
33 typedef BOOL CALLBACK (*IVO_ContCallback)(DWORD);
35 #define ICOM_INTERFACE IViewObject
36 #define IViewObject_METHODS \
37 ICOM_METHOD10(HRESULT,Draw, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hdcTargetDev, HDC,hdcDraw, LPCRECTL,lprcBounds, LPCRECTL,lprcWBounds, IVO_ContCallback, pfnContinue, DWORD,dwContinue) \
38 ICOM_METHOD6(HRESULT,GetColorSet, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hicTargetDevice, struct tagLOGPALETTE**,ppColorSet) \
39 ICOM_METHOD4(HRESULT,Freeze, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DWORD*,pdwFreeze) \
40 ICOM_METHOD1(HRESULT,Unfreeze, DWORD,dwFreeze) \
41 ICOM_METHOD3(HRESULT,SetAdvise, DWORD,aspects, DWORD,advf, IAdviseSink*,pAdvSink) \
42 ICOM_METHOD3(HRESULT,GetAdvise, DWORD*,pAspects, DWORD*,pAdvf, IAdviseSink**,ppAdvSink)
43 #define IViewObject_IMETHODS \
46 ICOM_DEFINE(IViewObject,IUnknown)
49 /*** IUnknwon methods ***/
50 #define IViewObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
51 #define IViewObject_AddRef(p) ICOM_CALL (AddRef,p)
52 #define IViewObject_Release(p) ICOM_CALL (Release,p)
53 /*** IViewObject methods ***/
54 #define IViewObject_Draw(p,a,b,c,d,e,f,g,h,i,j) ICOM_CALL10(Draw,p,a,b,c,d,e,f,g,h,i,j)
55 #define IViewObject_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
56 #define IViewObject_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
57 #define IViewObject_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
58 #define IViewObject_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
59 #define IViewObject_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
63 /*****************************************************************************
64 * IViewObject2 interface
66 #define ICOM_INTERFACE IViewObject2
67 #define IViewObject2_METHODS \
68 ICOM_METHOD4(HRESULT,GetExtent, DWORD,dwDrawAspect, LONG,lindex, DVTARGETDEVICE*,ptd, LPSIZEL,lpsizel)
69 #define IViewObject2_IMETHODS \
70 IViewObject_IMETHODS \
72 ICOM_DEFINE(IViewObject2,IViewObject)
75 /*** IUnknwon methods ***/
76 #define IViewObject2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
77 #define IViewObject2_AddRef(p) ICOM_CALL (AddRef,p)
78 #define IViewObject2_Release(p) ICOM_CALL (Release,p)
79 /*** IViewObject methods ***/
80 #define IViewObject2_Draw(p,a,b,c,d,e,f,g,h,i,j) ICOM_CALL10(Draw,p,a,b,c,d,e,f,g,h,i,j)
81 #define IViewObject2_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
82 #define IViewObject2_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
83 #define IViewObject2_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
84 #define IViewObject2_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
85 #define IViewObject2_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
86 /*** IViewObject2 methods ***/
87 #define IViewObject2_GetExtent(p,a,b,c,d) ICOM_CALL4(GetExtent,p,a,b,c,d)
91 #endif /* defined(__cplusplus) */
93 #endif /* __WINE_WINE_OBJ_OLEVIEW_H */