1// so_activex.idl : IDL source for so_activex.dll
2//
3
4// This file will be processed by the MIDL tool to
5// produce the type library (so_activex.tlb) and marshalling code.
6
7import "oaidl.idl";
8import "ocidl.idl";
9#include "olectl.h"
10
11
12	[
13		object,
14		uuid(DACF7E3F-626B-4BF9-964B-F4910C843711),
15		dual,
16		helpstring("ISOActiveX Interface"),
17		pointer_default(unique)
18	]
19	interface ISOActiveX : IDispatch
20	{
21	};
22
23[
24    object,
25    uuid(BF5D10F3-8A10-4A0B-B150-2B6AA2D7E118),
26    dual,
27    helpstring("ISOComWindowPeer Interface"),
28    pointer_default(unique)
29]
30interface ISOComWindowPeer : IDispatch
31{
32    [id(1), helpstring("method getWindowHandle")]
33                HRESULT getWindowHandle( [in] SAFEARRAY(VARIANT) procId,
34										 [in] short s,
35										 [out,retval] long* ret);
36
37    [id(2), helpstring("method getToolkit")]
38                HRESULT getToolkit( [out,retval] IDispatch** retVal );
39
40    [id(3), helpstring("method setPointer")]
41                HRESULT setPointer( [in] IDispatch* xPointer );
42
43    [id(4), helpstring("method setBackground")]
44                HRESULT setBackground( [in] int nColor );
45
46    [id(5), helpstring("method invalidate")]
47                HRESULT invalidate( [in] short );
48
49    [id(6), helpstring("method invalidateRect")]
50                HRESULT invalidateRect( [in] IDispatch* aRect, [in] short nFlags );
51
52    [id(7), helpstring("method dispose")]
53                HRESULT dispose();
54
55    [id(8), helpstring("method addEventListener")]
56                HRESULT addEventListener( [in] IDispatch* xListener );
57
58    [id(9), helpstring("method removeEventListener")]
59                HRESULT removeEventListener( [in] IDispatch* xListener );
60
61	[propget, id(10), helpstring("property_implementedInterfaces")]
62				HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal);
63};
64
65[
66    object,
67    uuid(9337694C-B27D-4384-95A4-9D8E0EABC9E5),
68    dual,
69    helpstring("ISODispatchInterceptor Interface"),
70    pointer_default(unique)
71]
72interface ISODispatchInterceptor : IDispatch
73{
74//com.sun.star.frame.XDispatchProviderInterceptor
75
76    [id(1), helpstring("method getSlaveDispatchProvider")]
77				HRESULT getSlaveDispatchProvider( [out,retval] IDispatch** retVal );
78
79    [id(2), helpstring("method setSlaveDispatchProvider")]
80				HRESULT setSlaveDispatchProvider( [in] IDispatch* xNewDispatchProvider );
81
82    [id(3), helpstring("method getMasterDispatchProvider")]
83				HRESULT getMasterDispatchProvider( [out,retval] IDispatch** retVal );
84
85    [id(4), helpstring("method setMasterDispatchProvider")]
86				HRESULT setMasterDispatchProvider( [in] IDispatch* xNewSupplier );
87
88// com.sun.star.frame.XDispatchProvider
89
90    [id(5), helpstring("method queryDispatch")]
91				HRESULT queryDispatch( [in] IDispatch* aURL,
92									   [in] BSTR aTargetFrameName,
93									   [in] long nSearchFlags,
94									   [out,retval] IDispatch** retVal );
95
96    [id(6), helpstring("method queryDispatches")]
97				HRESULT queryDispatches( [in] SAFEARRAY(IDispatch*) aDescripts,
98										 [out,retval] SAFEARRAY(VARIANT)* retVal );
99
100
101// com.sun.star.frame.XDispatch
102
103    [id(7), helpstring("method dispatch")]
104				HRESULT dispatch( [in] IDispatch* aURL,
105								  [in] SAFEARRAY(VARIANT) aArgs );
106
107    [id(8), helpstring("method addStatusListener")]
108				HRESULT addStatusListener( [in] IDispatch* xControl,
109										   [in] IDispatch* aURL );
110
111    [id(9), helpstring("method removeStatusListener")]
112				HRESULT removeStatusListener( [in] IDispatch* xControl,
113											  [in] IDispatch* aURL );
114
115// com.sun.star.frame.XInterceptorInfo
116
117
118    [id(10), helpstring("method getInterceptedURLs")]
119				HRESULT getInterceptedURLs( [out,retval] SAFEARRAY(BSTR)* pVal );
120
121// the common UNO-COM staff
122	[propget, id(11), helpstring("property_implementedInterfaces")]
123				HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal);
124
125};
126
127
128
129
130[
131    object,
132    uuid(029E9F1E-2B3F-4297-9160-8197DE7ED54F),
133    dual,
134    helpstring("ISOActionsApproval Interface"),
135    pointer_default(unique)
136]
137interface ISOActionsApproval : IDispatch
138{
139//com.sun.star.embed.XActionsApproval
140
141    [id(1), helpstring("method approveAction")]
142				HRESULT approveAction( [in] long aActionID,
143										[out,retval] boolean* pbApproval );
144
145// the common UNO-COM staff
146	[propget, id(2), helpstring("property_implementedInterfaces")]
147				HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal);
148};
149
150
151
152[
153	uuid(61FA3F13-8061-4796-B055-3697ED28CB38),
154	version(1.0),
155	helpstring("so_activex 1.0 Type Library")
156]
157library SO_ACTIVEXLib
158{
159	importlib("stdole32.tlb");
160	importlib("stdole2.tlb");
161
162	[
163		uuid(7F760565-5719-4F04-BA86-112C474B10EA),
164		helpstring("_ISOActiveXEvents Interface")
165	]
166	dispinterface _ISOActiveXEvents
167	{
168		properties:
169		methods:
170	};
171
172	[
173		uuid(67F2A879-82D5-4A6D-8CC5-FFB3C114B69D),
174		helpstring("SOActiveX Class")
175	]
176	coclass SOActiveX
177	{
178		[default] interface ISOActiveX;
179		[default, source] dispinterface _ISOActiveXEvents;
180	};
181
182	[
183		uuid(EE51BD3E-8BB6-4FB8-B319-F65B1BE3B21D),
184		helpstring("SOComWindowPeer Class")
185	]
186	coclass SOComWindowPeer
187	{
188		[default] interface ISOComWindowPeer;
189	};
190
191	[
192		uuid(C5D6D568-57DA-4D6C-819A-451CB565E682),
193		helpstring("SODispatchInterceptor Class")
194	]
195	coclass SODispatchInterceptor
196	{
197		[default] interface ISODispatchInterceptor;
198	};
199
200	[
201		uuid(9F3697AC-7A18-4335-AF0A-65FAC2C35CC1),
202		helpstring("SOActionsApproval Class")
203	]
204	coclass SOActionsApproval
205	{
206		[default] interface ISOActionsApproval;
207	};
208
209};
210
211