1999-03-10 19:03:53 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to ViewObject
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_OLEVIEW_H
|
|
|
|
#define __WINE_WINE_OBJ_OLEVIEW_H
|
|
|
|
|
1999-08-18 20:35:57 +02:00
|
|
|
struct tagLOGPALETTE;
|
1999-03-10 19:03:53 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-03-10 19:03:53 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Declare the structures
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
|
|
|
|
DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
|
|
|
|
typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
|
|
|
|
|
|
|
|
DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
|
|
|
|
typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IViewObject interface
|
|
|
|
*/
|
2000-06-11 22:07:58 +02:00
|
|
|
typedef BOOL CALLBACK (*IVO_ContCallback)(DWORD);
|
1999-03-14 14:47:00 +01:00
|
|
|
|
1999-03-10 19:03:53 +01:00
|
|
|
#define ICOM_INTERFACE IViewObject
|
|
|
|
#define IViewObject_METHODS \
|
1999-05-02 11:27:08 +02:00
|
|
|
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) \
|
1999-08-18 20:35:57 +02:00
|
|
|
ICOM_METHOD6(HRESULT,GetColorSet, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DVTARGETDEVICE*,ptd, HDC,hicTargetDevice, struct tagLOGPALETTE**,ppColorSet) \
|
1999-03-10 19:03:53 +01:00
|
|
|
ICOM_METHOD4(HRESULT,Freeze, DWORD,dwDrawAspect, LONG,lindex, void*,pvAspect, DWORD*,pdwFreeze) \
|
|
|
|
ICOM_METHOD1(HRESULT,Unfreeze, DWORD,dwFreeze) \
|
|
|
|
ICOM_METHOD3(HRESULT,SetAdvise, DWORD,aspects, DWORD,advf, IAdviseSink*,pAdvSink) \
|
|
|
|
ICOM_METHOD3(HRESULT,GetAdvise, DWORD*,pAspects, DWORD*,pAdvf, IAdviseSink**,ppAdvSink)
|
|
|
|
#define IViewObject_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IViewObject_METHODS
|
|
|
|
ICOM_DEFINE(IViewObject,IUnknown)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
1999-03-10 19:03:53 +01:00
|
|
|
#define IViewObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IViewObject_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IViewObject_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IViewObject methods ***/
|
|
|
|
#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)
|
|
|
|
#define IViewObject_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
|
|
|
|
#define IViewObject_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
|
|
|
|
#define IViewObject_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
|
|
|
|
#define IViewObject_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
|
|
|
|
#define IViewObject_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IViewObject2 interface
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IViewObject2
|
|
|
|
#define IViewObject2_METHODS \
|
|
|
|
ICOM_METHOD4(HRESULT,GetExtent, DWORD,dwDrawAspect, LONG,lindex, DVTARGETDEVICE*,ptd, LPSIZEL,lpsizel)
|
|
|
|
#define IViewObject2_IMETHODS \
|
|
|
|
IViewObject_IMETHODS \
|
|
|
|
IViewObject2_METHODS
|
|
|
|
ICOM_DEFINE(IViewObject2,IViewObject)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
1999-03-10 19:03:53 +01:00
|
|
|
#define IViewObject2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IViewObject2_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IViewObject2_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IViewObject methods ***/
|
|
|
|
#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)
|
|
|
|
#define IViewObject2_GetColorSet(p,a,b,c,d,e,f) ICOM_CALL6(GetColorSet,p,a,b,c,d,e,f)
|
|
|
|
#define IViewObject2_Freeze(p,a,b,c,d) ICOM_CALL4(Freeze,p,a,b,c,d)
|
|
|
|
#define IViewObject2_Unfreeze(p,a) ICOM_CALL1(Unfreeze,p,a)
|
|
|
|
#define IViewObject2_SetAdvise(p,a,b,c) ICOM_CALL3(SetAdvise,p,a,b,c)
|
|
|
|
#define IViewObject2_GetAdvise(p,a,b,c) ICOM_CALL3(GetAdvise,p,a,b,c)
|
|
|
|
/*** IViewObject2 methods ***/
|
|
|
|
#define IViewObject2_GetExtent(p,a,b,c,d) ICOM_CALL4(GetExtent,p,a,b,c,d)
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-03-10 19:03:53 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_WINE_OBJ_OLEVIEW_H */
|
|
|
|
|