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