1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_bridge_OleBridgeSupplier2_idl__
28#define __com_sun_star_bridge_OleBridgeSupplier2_idl__
29
30#ifndef __com_sun_star_bridge_XBridgeSupplier2_idl__
31#include <com/sun/star/bridge/XBridgeSupplier2.idl>
32#endif
33
34
35//=============================================================================
36
37module com { module sun { module star { module bridge {
38
39//=============================================================================
40/** maps UNO types to oleautomation types and vice versa.<p>
41
42	The XBridgeSupplier2 interface provides the function <code>createBridge</code> which
43	maps a value of an UNO or Automation type to the desired target type. If an UNO interface
44	was mapped  to IDispatch, then all objects (interfaces, structs) and other
45	types which
46	are obtained from that Automation object are automatically mapped to the corresponding
47	 Automation types. Hence, if one provides an initial object which forms the root of all
48	 other objects, such as a service manager, then only that object needs to be explicitly
49	 mapped by a call to <code>createBridge</code>. The same holds true if an automation
50	 object is mapped to an UNO interface.<br>
51	<p>The Automation types <code>VT_CY</code> and <code>VT_DATE</code> are not supported.
52	For Automation objects to be mapped they have to implement IDispatch interface. Other
53	COM interfaces,
54	except for IUnknown, are not supported.UNO interfaces and structs are mapped to IDispatch.
55
56	<p>The service implements the <type>XBridgeSupplier2</type> interface
57	and handles the model types
58	<const>com::sun::star::bridge::ModelDependent::UNO</const> and
59	<const>com::sun::star::bridge::ModelDependent::OLE</const>.
60	The service does not specify any
61	requirements for registering OLE objects and class factories. </p>
62
63    @deprecated
64*/
65published service OleBridgeSupplier2
66{
67	interface com::sun::star::bridge::XBridgeSupplier2;
68
69};
70
71//=============================================================================
72
73}; }; }; };
74
75#endif
76