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