:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / ole32 / obj_oleview.h
1 /*
2  * Defines the COM interfaces and APIs related to ViewObject
3  *
4  */
5
6 #ifndef __WINE_WINE_OBJ_OLEVIEW_H
7 #define __WINE_WINE_OBJ_OLEVIEW_H
8
9 struct tagLOGPALETTE;
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif /* defined(__cplusplus) */
14
15 /*****************************************************************************
16  * Declare the structures
17  */
18
19
20 /*****************************************************************************
21  * Predeclare the interfaces
22  */
23
24 DEFINE_OLEGUID(IID_IViewObject,  0x0000010dL, 0, 0);
25 typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
26
27 DEFINE_OLEGUID(IID_IViewObject2,  0x00000127L, 0, 0);
28 typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
29
30 /*****************************************************************************
31  * IViewObject interface
32  */
33 typedef BOOL    CALLBACK (*IVO_ContCallback)(DWORD);
34
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 \
44         IUnknown_IMETHODS \
45         IViewObject_METHODS
46 ICOM_DEFINE(IViewObject,IUnknown)
47 #undef ICOM_INTERFACE
48
49 /*** IUnknown 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)
60                                   
61
62
63 /*****************************************************************************
64  * IViewObject2 interface
65  */
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 \
71         IViewObject2_METHODS
72 ICOM_DEFINE(IViewObject2,IViewObject)
73 #undef ICOM_INTERFACE
74
75 /*** IUnknown 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)
88
89 #ifdef __cplusplus
90 } /* extern "C" */
91 #endif /* defined(__cplusplus) */
92
93 #endif /* __WINE_WINE_OBJ_OLEVIEW_H */
94