2 * Defines the COM interfaces and APIs related to ViewObject
4 * Depends on 'obj_base.h'.
7 #ifndef __WINE_WINE_OBJ_OLEVIEW_H
8 #define __WINE_WINE_OBJ_OLEVIEW_H
15 #endif /* defined(__cplusplus) */
17 /*****************************************************************************
18 * Declare the structures
22 /*****************************************************************************
23 * Predeclare the interfaces
26 DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
27 typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
29 DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
30 typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
32 /*****************************************************************************
33 * IViewObject interface
35 typedef BOOL (CALLBACK* IVO_ContCallback)(DWORD);
37 #define ICOM_INTERFACE IViewObject
38 #define IViewObject_METHODS \
39 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) \
40 ICOM_METHOD6(HRESULT,GetColorSet, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hicTargetDevice, LOGPALETTE**,ppColorSet) \
41 ICOM_METHOD4(HRESULT,Freeze, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DWORD*,pdwFreeze) \
42 ICOM_METHOD1(HRESULT,Unfreeze, DWORD,dwFreeze) \
43 ICOM_METHOD3(HRESULT,SetAdvise, DWORD,aspects, DWORD,advf, IAdviseSink*,pAdvSink) \
44 ICOM_METHOD3(HRESULT,GetAdvise, DWORD*,pAspects, DWORD*,pAdvf, IAdviseSink**,ppAdvSink)
45 #define IViewObject_IMETHODS \
48 ICOM_DEFINE(IViewObject,IUnknown)
51 #ifdef ICOM_CINTERFACE
52 /*** IUnknwon methods ***/
53 #define IViewObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
54 #define IViewObject_AddRef(p) ICOM_CALL (AddRef,p)
55 #define IViewObject_Release(p) ICOM_CALL (Release,p)
56 /*** IViewObject methods ***/
57 #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)
58 #define IViewObject_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
59 #define IViewObject_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
60 #define IViewObject_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
61 #define IViewObject_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
62 #define IViewObject_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
67 /*****************************************************************************
68 * IViewObject2 interface
70 #define ICOM_INTERFACE IViewObject2
71 #define IViewObject2_METHODS \
72 ICOM_METHOD4(HRESULT,GetExtent, DWORD,dwDrawAspect, LONG,lindex, DVTARGETDEVICE*,ptd, LPSIZEL,lpsizel)
73 #define IViewObject2_IMETHODS \
74 IViewObject_IMETHODS \
76 ICOM_DEFINE(IViewObject2,IViewObject)
79 #ifdef ICOM_CINTERFACE
80 /*** IUnknwon methods ***/
81 #define IViewObject2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
82 #define IViewObject2_AddRef(p) ICOM_CALL (AddRef,p)
83 #define IViewObject2_Release(p) ICOM_CALL (Release,p)
84 /*** IViewObject methods ***/
85 #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)
86 #define IViewObject2_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
87 #define IViewObject2_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
88 #define IViewObject2_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
89 #define IViewObject2_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
90 #define IViewObject2_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
91 /*** IViewObject2 methods ***/
92 #define IViewObject2_GetExtent(p,a,b,c,d) ICOM_CALL4(GetExtent,p,a,b,c,d)
97 #endif /* defined(__cplusplus) */
99 #endif /* __WINE_WINE_OBJ_OLEVIEW_H */