1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_bridge_oleautomation_BridgeSupplier_idl__
24#define __com_sun_star_bridge_oleautomation_BridgeSupplier_idl__
25
26#ifndef __com_sun_star_bridge_XBridgeSupplier2_idl__
27#include <com/sun/star/bridge/XBridgeSupplier2.idl>
28#endif
29
30
31//=============================================================================
32
33module com { module sun { module star { module bridge { module oleautomation {
34
35//=============================================================================
36/** maps UNO types to oleautomation types and vice versa.
37    <p>
38	The function
39	<member scope="com::sun::star::bridge">XBridgeSupplier2::createBridge</member>
40	maps a value of a UNO or Automation type to the desired target type. If a UNO
41	interface was mapped  to <code>IDispatch</code>, then all objects
42	(interfaces, structs) and other types which	are obtained from that Automation
43	object are automatically mapped to the corresponding Automation types. Hence,
44	if one provides an initial object which forms the root of all other objects,
45	such as a service manager, then only that object needs to be explicitly
46	mapped by a call to
47	<member scope="com::sun::star::bridge">XBridgeSupplier2::createBridge</member>.
48	The same holds true if an automation  object is mapped to an UNO interface.
49	</p>
50	<p>
51	For Automation objects to be mapped they have to implement
52	<code>IDispatch</code> interface. Other COM interfaces,	except for
53	<code>IUnknown</code>, are not supported. UNO interfaces and structs are
54	mapped to <code>IDispatch</code>.
55	</p>
56	<p>
57	The service implements the
58	<type scope="com::sun::star::bridge">XBridgeSupplier2</type> interface and
59	handles the model types
60	<const>com::sun::star::bridge::ModelDependent::UNO</const> and
61	<const>com::sun::star::bridge::ModelDependent::OLE</const>.
62	The service does not specify any requirements for registering OLE objects and
63	class factories.
64	</p>
65*/
66service BridgeSupplier
67{
68	interface com::sun::star::bridge::XBridgeSupplier2;
69
70};
71
72//=============================================================================
73
74}; }; }; }; };
75
76#endif
77