library/Makefile.in and unicode/Makefile.in don't exist anymore.
[wine.git] / include / wine / obj_oleview.h
blob2b3474e51725caf4ef7614d539b81468342d6b45
1 /*
2 * Defines the COM interfaces and APIs related to ViewObject
4 * Copyright (C) 1999 Paul Quinn
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_WINE_OBJ_OLEVIEW_H
22 #define __WINE_WINE_OBJ_OLEVIEW_H
24 struct tagLOGPALETTE;
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* defined(__cplusplus) */
30 /*****************************************************************************
31 * Declare the structures
35 /*****************************************************************************
36 * Predeclare the interfaces
39 DEFINE_OLEGUID(IID_IViewObject, 0x0000010dL, 0, 0);
40 typedef struct IViewObject IViewObject, *LPVIEWOBJECT;
42 DEFINE_OLEGUID(IID_IViewObject2, 0x00000127L, 0, 0);
43 typedef struct IViewObject2 IViewObject2, *LPVIEWOBJECT2;
45 /*****************************************************************************
46 * IViewObject interface
48 typedef BOOL (CALLBACK *IVO_ContCallback)(DWORD);
50 #define INTERFACE IViewObject
51 #define IViewObject_METHODS \
52 IUnknown_METHODS \
53 STDMETHOD(Draw)(THIS_ DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, IVO_ContCallback pfnContinue, DWORD dwContinue) PURE; \
54 STDMETHOD(GetColorSet)(THIS_ DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hicTargetDevice, struct tagLOGPALETTE **ppColorSet) PURE; \
55 STDMETHOD(Freeze)(THIS_ DWORD dwDrawAspect, LONG lindex, void *pvAspect, DWORD *pdwFreeze) PURE; \
56 STDMETHOD(Unfreeze)(THIS_ DWORD dwFreeze) PURE; \
57 STDMETHOD(SetAdvise)(THIS_ DWORD aspects, DWORD advf, IAdviseSink *pAdvSink) PURE; \
58 STDMETHOD(GetAdvise)(THIS_ DWORD *pAspects, DWORD *pAdvf, IAdviseSink **ppAdvSink) PURE;
59 ICOM_DEFINE(IViewObject,IUnknown)
60 #undef INTERFACE
62 #ifdef COBJMACROS
63 /*** IUnknown methods ***/
64 #define IViewObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
65 #define IViewObject_AddRef(p) (p)->lpVtbl->AddRef(p)
66 #define IViewObject_Release(p) (p)->lpVtbl->Release(p)
67 /*** IViewObject methods ***/
68 #define IViewObject_Draw(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Draw(p,a,b,c,d,e,f,g,h,i,j)
69 #define IViewObject_GetColorSet(p,a,b,c,d,e,f) (p)->lpVtbl->GetColorSet(p,a,b,c,d,e,f)
70 #define IViewObject_Freeze(p,a,b,c,d) (p)->lpVtbl->Freeze(p,a,b,c,d)
71 #define IViewObject_Unfreeze(p,a) (p)->lpVtbl->Unfreeze(p,a)
72 #define IViewObject_SetAdvise(p,a,b,c) (p)->lpVtbl->SetAdvise(p,a,b,c)
73 #define IViewObject_GetAdvise(p,a,b,c) (p)->lpVtbl->GetAdvise(p,a,b,c)
74 #endif
78 /*****************************************************************************
79 * IViewObject2 interface
81 #define INTERFACE IViewObject2
82 #define IViewObject2_METHODS \
83 IViewObject_METHODS \
84 STDMETHOD(GetExtent)(THIS_ DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE *ptd, LPSIZEL lpsizel) PURE;
85 ICOM_DEFINE(IViewObject2,IViewObject)
86 #undef INTERFACE
88 #ifdef COBJMACROS
89 /*** IUnknown methods ***/
90 #define IViewObject2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
91 #define IViewObject2_AddRef(p) (p)->lpVtbl->AddRef(p)
92 #define IViewObject2_Release(p) (p)->lpVtbl->Release(p)
93 /*** IViewObject methods ***/
94 #define IViewObject2_Draw(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Draw(p,a,b,c,d,e,f,g,h,i,j)
95 #define IViewObject2_GetColorSet(p,a,b,c,d,e,f) (p)->lpVtbl->GetColorSet(p,a,b,c,d,e,f)
96 #define IViewObject2_Freeze(p,a,b,c,d) (p)->lpVtbl->Freeze(p,a,b,c,d)
97 #define IViewObject2_Unfreeze(p,a) (p)->lpVtbl->Unfreeze(p,a)
98 #define IViewObject2_SetAdvise(p,a,b,c) (p)->lpVtbl->SetAdvise(p,a,b,c)
99 #define IViewObject2_GetAdvise(p,a,b,c) (p)->lpVtbl->GetAdvise(p,a,b,c)
100 /*** IViewObject2 methods ***/
101 #define IViewObject2_GetExtent(p,a,b,c,d) (p)->lpVtbl->GetExtent(p,a,b,c,d)
102 #endif
104 #ifdef __cplusplus
105 } /* extern "C" */
106 #endif /* defined(__cplusplus) */
108 #endif /* __WINE_WINE_OBJ_OLEVIEW_H */