source: trunk/include/win/wine/obj_oleundo.h

Last change on this file was 641, checked in by sandervl, 26 years ago

Updated Wine headers

File size: 12.1 KB
Line 
1/* $Id: obj_oleundo.h,v 1.5 1999-08-22 22:52:09 sandervl Exp $ */
2/*
3 * Defines the COM interfaces and APIs from ocidl.h which pertain to Undo/Redo
4 *
5 * Depends on 'obj_base.h'.
6 */
7
8#ifndef __WINE_WINE_OBJ_OLEUNDO_H
9#define __WINE_WINE_OBJ_OLEUNDO_H
10
11
12#include "winbase.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif /* defined(__cplusplus) */
17
18/*****************************************************************************
19 * Predeclare the interfaces
20 */
21DEFINE_GUID(IID_IQuickActivate, 0xcf51ed10, 0x62fe, 0x11cf, 0xbf, 0x86, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0x36);
22typedef struct IQuickActivate IQuickActivate,*LPQUICKACTIVATE;
23
24DEFINE_GUID(IID_IPointerInactive, 0x55980ba0, 0x35aa, 0x11cf, 0xb6, 0x71, 0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8);
25typedef struct IPointerInactive IPointerInactive,*LPPOINTERINACTIVE;
26
27DEFINE_GUID(IID_IAdviseSinkEx, 0x3af24290, 0x0c96, 0x11ce, 0xa0, 0xcf, 0x00, 0xaa, 0x00, 0x60, 0x0a, 0xb8);
28typedef struct IAdviseSinkEx IAdviseSinkEx,*LPADVISESINKEX;
29
30DEFINE_GUID(IID_IOleUndoManager, 0xd001f200, 0xef97, 0x11ce, 0x9b, 0xc9, 0x00, 0xaa, 0x00, 0x60, 0x8e, 0x01);
31typedef struct IOleUndoManager IOleUndoManager,*LPOLEUNDOMANAGER;
32
33DEFINE_GUID(IID_IOleUndoUnit, 0x894ad3b0, 0xef97, 0x11ce, 0x9b, 0xc9, 0x00, 0xaa, 0x00, 0x60, 0x8e, 0x01);
34typedef struct IOleUndoUnit IOleUndoUnit,*LPOLEUNDOUNIT;
35
36DEFINE_GUID(IID_IOleParentUndoUnit, 0xa1faf330, 0xef97, 0x11ce, 0x9b, 0xc9, 0x00, 0xaa, 0x00, 0x60, 0x8e, 0x01);
37typedef struct IOleParentUndoUnit IOleParentUndoUnit,*LPOLEPARENTUNDOUNIT;
38
39DEFINE_GUID(IID_IEnumOleUndoUnits, 0xb3e7c340, 0xef97, 0x11ce, 0x9b, 0xc9, 0x00, 0xaa, 0x00, 0x60, 0x8e, 0x01);
40typedef struct IEnumOleUndoUnits IEnumOleUndoUnits,*LPENUMOLEUNDOUNITS;
41
42/*****************************************************************************
43 * Declare the structures
44 */
45typedef enum tagQACONTAINERFLAGS
46{
47 QACONTAINER_SHOWHATCHING = 0x1,
48 QACONTAINER_SHOWGRABHANDLES = 0x2,
49 QACONTAINER_USERMODE = 0x4,
50 QACONTAINER_DISPLAYASDEFAULT = 0x8,
51 QACONTAINER_UIDEAD = 0x10,
52 QACONTAINER_AUTOCLIP = 0x20,
53 QACONTAINER_MESSAGEREFLECT = 0x40,
54 QACONTAINER_SUPPORTSMNEMONICS = 0x80
55} QACONTAINERFLAGS;
56
57typedef DWORD OLE_COLOR;
58
59typedef struct tagQACONTROL
60{
61 ULONG cbSize;
62 DWORD dwMiscStatus;
63 DWORD dwViewStatus;
64 DWORD dwEventCookie;
65 DWORD dwPropNotifyCookie;
66 DWORD dwPointerActivationPolicy;
67} QACONTROL;
68
69typedef struct tagQACONTAINER
70{
71 ULONG cbSize;
72 IOleClientSite *pClientSite;
73 IAdviseSinkEx *pAdviseSink;
74 IPropertyNotifySink *pPropertyNotifySink;
75 IUnknown *pUnkEventSink;
76 DWORD dwAmbientFlags;
77 OLE_COLOR colorFore;
78 OLE_COLOR colorBack;
79 IFont *pFont;
80 IOleUndoManager *pUndoMgr;
81 DWORD dwAppearance;
82 LONG lcid;
83 HPALETTE hpal;
84 struct IBindHost *pBindHost;
85} QACONTAINER;
86
87/*****************************************************************************
88 * IQuickActivate interface
89 */
90#define ICOM_INTERFACE IQuickActivate
91#define IQuickActivate_METHODS \
92 ICOM_METHOD2(HRESULT,QuickActivate, QACONTAINER*,pQaContainer, QACONTROL*,pQaControl) \
93 ICOM_METHOD1(HRESULT,SetContentExtent, LPSIZEL,pSizel) \
94 ICOM_METHOD1(HRESULT,GetContentExtent, LPSIZEL,pSizel)
95#define IQuickActivate_IMETHODS \
96 IUnknown_IMETHODS \
97 IQuickActivate_METHODS
98ICOM_DEFINE(IQuickActivate,IUnknown)
99#undef ICOM_INTERFACE
100
101#ifdef ICOM_CINTERFACE
102/*** IUnknown methods ***/
103#define IQuickActivate_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
104#define IQuickActivate_AddRef(p) ICOM_CALL (AddRef,p)
105#define IQuickActivate_Release(p) ICOM_CALL (Release,p)
106/*** IQuickActivate methods ***/
107#define IQuickActivate_QuickActivate(p,a,b) ICOM_CALL2(QuickActivate,p,a,b)
108#define IQuickActivate_SetContentExtent(p,a) ICOM_CALL1(SetContentExtent,p,a)
109#define IQuickActivate_GetContentExtent(p,a) ICOM_CALL1(GetContentExtent,p,a)
110#endif
111
112
113/*****************************************************************************
114 * IPointerInactive interface
115 */
116#define ICOM_INTERFACE IPointerInactive
117#define IPointerInactive_METHODS \
118 ICOM_METHOD1(HRESULT,GetActivationPolicy, DWORD*,pdwPolicy) \
119 ICOM_METHOD4(HRESULT,OnInactiveMouseMove, LPCRECT,pRectBounds, LONG,x, LONG,y, DWORD,grfKeyState) \
120 ICOM_METHOD5(HRESULT,OnInactiveSetCursor, LPCRECT,pRectBounds, LONG,x, LONG,y, DWORD,dwMouseMsg, BOOL,fSetAlways)
121#define IPointerInactive_IMETHODS \
122 IUnknown_IMETHODS \
123 IPointerInactive_METHODS
124ICOM_DEFINE(IPointerInactive,IUnknown)
125#undef ICOM_INTERFACE
126
127#ifdef ICOM_CINTERFACE
128/*** IUnknown methods ***/
129#define IPointerInactive_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
130#define IPointerInactive_AddRef(p) ICOM_CALL (AddRef,p)
131#define IPointerInactive_Release(p) ICOM_CALL (Release,p)
132/*** IPointerInactive methods ***/
133#define IPointerInactive_GetActivationPolicy(p,a) ICOM_CALL1(GetActivationPolicy,p,a)
134#define IPointerInactive_OnInactiveMoveMouse(p,a,b,c,d) ICOM_CALL4(OnInactiveMoveMouse,p,a,b,c,d)
135#define IPointerInactive_OnInactiveSetCursor(p,a,b,c,d,e) ICOM_CALL5(OnInactiveSetCursor,p,a,b,d,e)
136#endif
137
138
139/*****************************************************************************
140 * IAdviseSinkEx interface
141 */
142#define ICOM_INTERFACE IAdviseSinkEx
143#define IAdviseSinkEx_METHODS \
144 ICOM_METHOD1(HRESULT,OnViewStatusChange, DWORD,dwViewStatus)
145#define IAdviseSinkEx_IMETHODS \
146 IAdviseSink_IMETHODS \
147 IAdviseSinkEx_METHODS
148ICOM_DEFINE(IAdviseSinkEx,IAdviseSink)
149#undef ICOM_INTERFACE
150
151#ifdef ICOM_CINTERFACE
152/*** IUnknown methods ***/
153#define IAdviseSinkEx_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
154#define IAdviseSinkEx_AddRef(p) ICOM_CALL (AddRef,p)
155#define IAdviseSinkEx_Release(p) ICOM_CALL (Release,p)
156/*** IAdviseSink methods ***/
157#define IAdviseSinkEx_OnDataChange(p,a,b) ICOM_CALL2(OnDataChange,p,a,b)
158#define IAdviseSinkEx_OnViewChange(p,a,b) ICOM_CALL2(OnViewChange,p,a,b)
159#define IAdviseSinkEx_OnRename(p,a) ICOM_CALL1(OnRename,p,a)
160#define IAdviseSinkEx_OnSave(p) ICOM_CALL (OnSave,p)
161#define IAdviseSinkEx_OnClose(p) ICOM_CALL (OnClose,p)
162/*** IAdviseSinkEx methods ***/
163#define IAdviseSinkEx_OnViewStatusChange(p,a) ICOM_CALL1(OnViewStatusChange,p,a)
164#endif
165
166
167/*****************************************************************************
168 * IOleUndoManager interface
169 */
170#define ICOM_INTERFACE IOleUndoManager
171#define IOleUndoManager_METHODS \
172 ICOM_METHOD1(HRESULT,Open, IOleParentUndoUnit*,pPUU) \
173 ICOM_METHOD2(HRESULT,Close, IOleParentUndoUnit*,pPUU, BOOL,fCommit) \
174 ICOM_METHOD1(HRESULT,Add, IOleUndoUnit*,pUU) \
175 ICOM_METHOD1(HRESULT,GetOpenParentState, DWORD*,pdwState) \
176 ICOM_METHOD1(HRESULT,DiscardFrom, IOleUndoUnit*,pUU) \
177 ICOM_METHOD1(HRESULT,UndoTo, IOleUndoUnit*,pUU) \
178 ICOM_METHOD1(HRESULT,RedoTo, IOleUndoUnit*,pUU) \
179 ICOM_METHOD1(HRESULT,EnumUndoable, IEnumOleUndoUnits**,ppEnum) \
180 ICOM_METHOD1(HRESULT,EnumRedoable, IEnumOleUndoUnits**,ppEnum) \
181 ICOM_METHOD1(HRESULT,GetLastUndoDescription, BSTR*,pBstr) \
182 ICOM_METHOD1(HRESULT,GetLastRedoDescription, BSTR*,pBstr) \
183 ICOM_METHOD1(HRESULT,Enable, BOOL,fEnable)
184#define IOleUndoManager_IMETHODS \
185 IUnknown_IMETHODS \
186 IOleUndoManager_METHODS
187ICOM_DEFINE(IOleUndoManager,IUnknown)
188#undef ICOM_INTERFACE
189
190#ifdef ICOM_CINTERFACE
191/*** IUnknown methods ***/
192#define IOleUndoManager_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
193#define IOleUndoManager_AddRef(p) ICOM_CALL (AddRef,p)
194#define IOleUndoManager_Release(p) ICOM_CALL (Release,p)
195/*** IOleUndoManager methods ***/
196#define IOleUndoManager_Open(p,a) ICOM_CALL1(Open,p,a)
197#define IOleUndoManager_Close(p,a,b) ICOM_CALL2(Close,p,a,b)
198#define IOleUndoManager_Add(p,a) ICOM_CALL1(Add,p,a)
199#define IOleUndoManager_GetOpenParentState(p,a) ICOM_CALL1(GetOpenParentState,p,a)
200#define IOleUndoManager_DiscardFrom(p,a) ICOM_CALL1(DiscardFrom,p,a)
201#define IOleUndoManager_UndoTo(p,a) ICOM_CALL1(UndoTo,p,a)
202#define IOleUndoManager_RedoTo(p,a) ICOM_CALL1(RedoTo,p,a)
203#define IOleUndoManager_EnumUndoable(p,a) ICOM_CALL1(EnumUndoable,p,a)
204#define IOleUndoManager_EnumRedoable(p,a) ICOM_CALL1(EnumRedoable,p,a)
205#define IOleUndoManager_GetLastUndoDescription(p,a) ICOM_CALL1(GetLastUndoDescription,p,a)
206#define IOleUndoManager_GetLastRedoDescription(p,a) ICOM_CALL1(GetLastRedoDescription,p,a)
207#define IOleUndoManager_Enable(p,a) ICOM_CALL1(Enable,p,a)
208#endif
209
210
211/*****************************************************************************
212 * IOleUndoUnit interface
213 */
214#define ICOM_INTERFACE IOleUndoUnit
215#define IOleUndoUnit_METHODS \
216 ICOM_METHOD1(HRESULT,Do, IOleUndoManager*,pUndoManager) \
217 ICOM_METHOD1(HRESULT,GetDescription, BSTR*,pBstr) \
218 ICOM_METHOD2(HRESULT,GetUnitType, CLSID*,pClsid, LONG*,plID) \
219 ICOM_METHOD (HRESULT,OnNextAdd)
220#define IOleUndoUnit_IMETHODS \
221 IUnknown_IMETHODS \
222 IOleUndoUnit_METHODS
223ICOM_DEFINE(IOleUndoUnit,IUnknown)
224#undef ICOM_INTERFACE
225
226#ifdef ICOM_CINTERFACE
227/*** IUnknown methods ***/
228#define IOleUndoUnit_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
229#define IOleUndoUnit_AddRef(p) ICOM_CALL (AddRef,p)
230#define IOleUndoUnit_Release(p) ICOM_CALL (Release,p)
231/*** IOleUndoUnit methods ***/
232#define IOleUndoUnit_Do(p,a) ICOM_CALL1(Do,p,a)
233#define IOleUndoUnit_GetDescription(p,a) ICOM_CALL1(GetDescription,p,a)
234#define IOleUndoUnit_GetUnitType(p,a,b) ICOM_CALL2(GetUnitType,p,a,b)
235#define IOleUndoUnit_OnNextAdd(p) ICOM_CALL (OnNextAdd,p)
236#endif
237
238
239
240/*****************************************************************************
241 * IOleUndoUnit interface
242 */
243#define ICOM_INTERFACE IOleParentUndoUnit
244#define IOleParentUndoUnit_METHODS \
245 ICOM_METHOD1(HRESULT,Open, IOleParentUndoUnit*,pPUU) \
246 ICOM_METHOD2(HRESULT,Close, IOleParentUndoUnit*,pPUU, BOOL,fCommit) \
247 ICOM_METHOD1(HRESULT,Add, IOleUndoUnit*,pUU) \
248 ICOM_METHOD1(HRESULT,FindUnit, IOleUndoUnit*,pUU) \
249 ICOM_METHOD1(HRESULT,GetParentState, DWORD*,pdwState)
250#define IOleParentUndoUnit_IMETHODS \
251 IOleUndoUnit_IMETHODS \
252 IOleParentUndoUnit_METHODS
253ICOM_DEFINE(IOleParentUndoUnit,IOleUndoUnit)
254#undef ICOM_INTERFACE
255
256#ifdef ICOM_CINTERFACE
257/*** IUnknown methods ***/
258#define IOleParentUndoUnit_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
259#define IOleParentUndoUnit_AddRef(p) ICOM_CALL (AddRef,p)
260#define IOleParentUndoUnit_Release(p) ICOM_CALL (Release,p)
261/*** IOleUndoUnit methods ***/
262#define IOleParentUndoUnit_Do(p,a) ICOM_CALL1(Do,p,a)
263#define IOleParentUndoUnit_GetDescription(p,a) ICOM_CALL1(GetDescription,p,a)
264#define IOleParentUndoUnit_GetUnitType(p,a,b) ICOM_CALL2(GetUnitType,p,a,b)
265#define IOleParentUndoUnit_OnNextAdd(p) ICOM_CALL (OnNextAdd,p)
266/*** IOleParentUndoUnit methods ***/
267#define IOleParentUndoUnit_Open(p,a) ICOM_CALL1(Open,p,a)
268#define IOleParentUndoUnit_Close(p,a,b) ICOM_CALL2(Close,p,a,b)
269#define IOleParentUndoUnit_Add(p,a) ICOM_CALL1(Add,p,a)
270#define IOleParentUndoUnit_FindUnit(p,a) ICOM_CALL1(FindUnit,p,a)
271#define IOleParentUndoUnit_GetParentState(p,a,b) ICOM_CALL1(GetParentState,p,a)
272#endif
273
274
275/*****************************************************************************
276 * IEnumOleUndoUnits interface
277 */
278#define ICOM_INTERFACE IEnumOleUndoUnits
279#define IEnumOleUndoUnits_METHODS \
280 ICOM_METHOD3(HRESULT,Next, ULONG,cElt, IOleUndoUnit**,rgElt, ULONG*,pcEltFetched) \
281 ICOM_METHOD1(HRESULT,Skip, ULONG,cElt) \
282 ICOM_METHOD (HRESULT,Reset) \
283 ICOM_METHOD1(HRESULT,Clone, IEnumOleUndoUnits**,ppEnum)
284#define IEnumOleUndoUnits_IMETHODS \
285 IUnknown_IMETHODS \
286 IEnumOleUndoUnits_METHODS
287ICOM_DEFINE(IEnumOleUndoUnits,IUnknown)
288#undef ICOM_INTERFACE
289
290#ifdef ICOM_CINTERFACE
291/*** IUnknown methods ***/
292#define IEnumOleUndoUnits_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
293#define IEnumOleUndoUnits_AddRef(p) ICOM_CALL (AddRef,p)
294#define IEnumOleUndoUnits_Release(p) ICOM_CALL (Release,p)
295/*** IEnumOleUndoUnits methods ***/
296#define IEnumOleUndoUnits_Next(p,a,b,c) ICOM_CALL3(Next,p,a,b,c)
297#define IEnumOleUndoUnits_Skip(p,a) ICOM_CALL1(Skip,p,a)
298#define IEnumOleUndoUnits_Reset(p,a) ICOM_CALL (Reset,p,a)
299#define IEnumOleUndoUnits_Clone(p,a) ICOM_CALL1(Clone,p,a)
300#endif
301
302#ifdef __cplusplus
303} /* extern "C" */
304#endif /* defined(__cplusplus) */
305
306#endif /* __WINE_WINE_OBJ_OLEUNDO_H */
307
Note: See TracBrowser for help on using the repository browser.