Added missing goto in switch statement.
[wine.git] / include / wine / obj_oleview.h
blob6958c0fa88add9eab3ab04249e0f490c5157ddaf
1 /*
2 * Defines the COM interfaces and APIs related to ViewObject
4 */
6 #ifndef __WINE_WINE_OBJ_OLEVIEW_H
7 #define __WINE_WINE_OBJ_OLEVIEW_H
10 #include "wine/obj_base.h"
11 #include "wine/obj_dataobject.h"
13 struct tagLOGPALETTE;
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* defined(__cplusplus) */
19 /*****************************************************************************
20 * Declare the structures
24 /*****************************************************************************
25 * Predeclare the interfaces
28 DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
29 typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
31 DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
32 typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
34 /*****************************************************************************
35 * IViewObject interface
37 typedef BOOL (CALLBACK* IVO_ContCallback)(DWORD);
39 #define ICOM_INTERFACE IViewObject
40 #define IViewObject_METHODS \
41 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) \
42 ICOM_METHOD6(HRESULT,GetColorSet, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hicTargetDevice, struct tagLOGPALETTE**,ppColorSet) \
43 ICOM_METHOD4(HRESULT,Freeze, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DWORD*,pdwFreeze) \
44 ICOM_METHOD1(HRESULT,Unfreeze, DWORD,dwFreeze) \
45 ICOM_METHOD3(HRESULT,SetAdvise, DWORD,aspects, DWORD,advf, IAdviseSink*,pAdvSink) \
46 ICOM_METHOD3(HRESULT,GetAdvise, DWORD*,pAspects, DWORD*,pAdvf, IAdviseSink**,ppAdvSink)
47 #define IViewObject_IMETHODS \
48 IUnknown_IMETHODS \
49 IViewObject_METHODS
50 ICOM_DEFINE(IViewObject,IUnknown)
51 #undef ICOM_INTERFACE
53 /*** IUnknwon methods ***/
54 #define IViewObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
55 #define IViewObject_AddRef(p) ICOM_CALL (AddRef,p)
56 #define IViewObject_Release(p) ICOM_CALL (Release,p)
57 /*** IViewObject methods ***/
58 #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)
59 #define IViewObject_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
60 #define IViewObject_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
61 #define IViewObject_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
62 #define IViewObject_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
63 #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 \
75 IViewObject2_METHODS
76 ICOM_DEFINE(IViewObject2,IViewObject)
77 #undef ICOM_INTERFACE
79 /*** IUnknwon methods ***/
80 #define IViewObject2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
81 #define IViewObject2_AddRef(p) ICOM_CALL (AddRef,p)
82 #define IViewObject2_Release(p) ICOM_CALL (Release,p)
83 /*** IViewObject methods ***/
84 #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)
85 #define IViewObject2_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
86 #define IViewObject2_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
87 #define IViewObject2_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
88 #define IViewObject2_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
89 #define IViewObject2_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
90 /*** IViewObject2 methods ***/
91 #define IViewObject2_GetExtent(p,a,b,c,d) ICOM_CALL4(GetExtent,p,a,b,c,d)
93 #ifdef __cplusplus
94 } /* extern "C" */
95 #endif /* defined(__cplusplus) */
97 #endif /* __WINE_WINE_OBJ_OLEVIEW_H */