| 1 | /* $Id: obj_oleview.h,v 1.7 2000-08-30 13:56:39 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Defines the COM interfaces and APIs related to ViewObject
|
|---|
| 4 | *
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef __WINE_WINE_OBJ_OLEVIEW_H
|
|---|
| 8 | #define __WINE_WINE_OBJ_OLEVIEW_H
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | #include "wine/obj_base.h"
|
|---|
| 12 | #include "wine/obj_dataobject.h"
|
|---|
| 13 |
|
|---|
| 14 | struct tagLOGPALETTE;
|
|---|
| 15 |
|
|---|
| 16 | #ifdef __cplusplus
|
|---|
| 17 | extern "C" {
|
|---|
| 18 | #endif /* defined(__cplusplus) */
|
|---|
| 19 |
|
|---|
| 20 | /*****************************************************************************
|
|---|
| 21 | * Declare the structures
|
|---|
| 22 | */
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | /*****************************************************************************
|
|---|
| 26 | * Predeclare the interfaces
|
|---|
| 27 | */
|
|---|
| 28 |
|
|---|
| 29 | DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
|
|---|
| 30 | typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
|
|---|
| 31 |
|
|---|
| 32 | DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
|
|---|
| 33 | typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
|
|---|
| 34 |
|
|---|
| 35 | /*****************************************************************************
|
|---|
| 36 | * IViewObject interface
|
|---|
| 37 | */
|
|---|
| 38 | typedef BOOL (* CALLBACK IVO_ContCallback)(DWORD);
|
|---|
| 39 |
|
|---|
| 40 | #define ICOM_INTERFACE IViewObject
|
|---|
| 41 | #define IViewObject_METHODS \
|
|---|
| 42 | 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) \
|
|---|
| 43 | ICOM_METHOD6(HRESULT,GetColorSet, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hicTargetDevice, struct tagLOGPALETTE**,ppColorSet) \
|
|---|
| 44 | ICOM_METHOD4(HRESULT,Freeze, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DWORD*,pdwFreeze) \
|
|---|
| 45 | ICOM_METHOD1(HRESULT,Unfreeze, DWORD,dwFreeze) \
|
|---|
| 46 | ICOM_METHOD3(HRESULT,SetAdvise, DWORD,aspects, DWORD,advf, IAdviseSink*,pAdvSink) \
|
|---|
| 47 | ICOM_METHOD3(HRESULT,GetAdvise, DWORD*,pAspects, DWORD*,pAdvf, IAdviseSink**,ppAdvSink)
|
|---|
| 48 | #define IViewObject_IMETHODS \
|
|---|
| 49 | IUnknown_IMETHODS \
|
|---|
| 50 | IViewObject_METHODS
|
|---|
| 51 | ICOM_DEFINE(IViewObject,IUnknown)
|
|---|
| 52 | #undef ICOM_INTERFACE
|
|---|
| 53 |
|
|---|
| 54 | #ifdef ICOM_CINTERFACE
|
|---|
| 55 | /*** IUnknwon methods ***/
|
|---|
| 56 | #define IViewObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 57 | #define IViewObject_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 58 | #define IViewObject_Release(p) ICOM_CALL (Release,p)
|
|---|
| 59 | /*** IViewObject methods ***/
|
|---|
| 60 | #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)
|
|---|
| 61 | #define IViewObject_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
|
|---|
| 62 | #define IViewObject_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
|
|---|
| 63 | #define IViewObject_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
|
|---|
| 64 | #define IViewObject_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
|
|---|
| 65 | #define IViewObject_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
|
|---|
| 66 | #endif
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | /*****************************************************************************
|
|---|
| 71 | * IViewObject2 interface
|
|---|
| 72 | */
|
|---|
| 73 | #define ICOM_INTERFACE IViewObject2
|
|---|
| 74 | #define IViewObject2_METHODS \
|
|---|
| 75 | ICOM_METHOD4(HRESULT,GetExtent, DWORD,dwDrawAspect, LONG,lindex, DVTARGETDEVICE*,ptd, LPSIZEL,lpsizel)
|
|---|
| 76 | #define IViewObject2_IMETHODS \
|
|---|
| 77 | IViewObject_IMETHODS \
|
|---|
| 78 | IViewObject2_METHODS
|
|---|
| 79 | ICOM_DEFINE(IViewObject2,IViewObject)
|
|---|
| 80 | #undef ICOM_INTERFACE
|
|---|
| 81 |
|
|---|
| 82 | #ifdef ICOM_CINTERFACE
|
|---|
| 83 | /*** IUnknwon methods ***/
|
|---|
| 84 | #define IViewObject2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 85 | #define IViewObject2_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 86 | #define IViewObject2_Release(p) ICOM_CALL (Release,p)
|
|---|
| 87 | /*** IViewObject methods ***/
|
|---|
| 88 | #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)
|
|---|
| 89 | #define IViewObject2_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
|
|---|
| 90 | #define IViewObject2_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
|
|---|
| 91 | #define IViewObject2_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
|
|---|
| 92 | #define IViewObject2_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
|
|---|
| 93 | #define IViewObject2_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
|
|---|
| 94 | /*** IViewObject2 methods ***/
|
|---|
| 95 | #define IViewObject2_GetExtent(p,a,b,c,d) ICOM_CALL4(GetExtent,p,a,b,c,d)
|
|---|
| 96 | #endif
|
|---|
| 97 |
|
|---|
| 98 | #ifdef __cplusplus
|
|---|
| 99 | } /* extern "C" */
|
|---|
| 100 | #endif /* defined(__cplusplus) */
|
|---|
| 101 |
|
|---|
| 102 | #endif /* __WINE_WINE_OBJ_OLEVIEW_H */
|
|---|
| 103 |
|
|---|