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_OleBridgeSupplier2_idl__
24#define __com_sun_star_bridge_OleBridgeSupplier2_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 {
34
35//=============================================================================
36/** maps UNO types to oleautomation types and vice versa.<p>
37
38	The XBridgeSupplier2 interface provides the function <code>createBridge</code> which
39	maps a value of an UNO or Automation type to the desired target type. If an UNO interface
40	was mapped  to IDispatch, then all objects (interfaces, structs) and other
41	types which
42	are obtained from that Automation object are automatically mapped to the corresponding
43	 Automation types. Hence, if one provides an initial object which forms the root of all
44	 other objects, such as a service manager, then only that object needs to be explicitly
45	 mapped by a call to <code>createBridge</code>. The same holds true if an automation
46	 object is mapped to an UNO interface.<br>
47	<p>The Automation types <code>VT_CY</code> and <code>VT_DATE</code> are not supported.
48	For Automation objects to be mapped they have to implement IDispatch interface. Other
49	COM interfaces,
50	except for IUnknown, are not supported.UNO interfaces and structs are mapped to IDispatch.
51
52	<p>The service implements the <type>XBridgeSupplier2</type> interface
53	and handles the model types
54	<const>com::sun::star::bridge::ModelDependent::UNO</const> and
55	<const>com::sun::star::bridge::ModelDependent::OLE</const>.
56	The service does not specify any
57	requirements for registering OLE objects and class factories. </p>
58
59    @deprecated
60*/
61published service OleBridgeSupplier2
62{
63	interface com::sun::star::bridge::XBridgeSupplier2;
64
65};
66
67//=============================================================================
68
69}; }; }; };
70
71#endif
72