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_XBridgeSupplier_idl__
24#define __com_sun_star_bridge_XBridgeSupplier_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __com_sun_star_uno_Uik_idl__
31#include <com/sun/star/uno/Uik.idl>
32#endif
33
34#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
35#include <com/sun/star/lang/IllegalArgumentException.idl>
36#endif
37
38
39//=============================================================================
40
41 module com {  module sun {  module star {  module bridge {
42
43//=============================================================================
44
45
46/** defines the interface for creating bridges to other object models.
47
48	<p>Because bridges sometimes can not be generated in an address space,
49	the implementation needs to check the address space of the caller by
50	comparing the machine and process ID against its own. These IDs are
51	provided by the UNO runtime.  </p>
52
53	<p>All objects, whether they are part of the UNO object model or not,
54	are carried in an <atom>any</atom>.  The representation of this object
55	is heavily model-dependent and has to be specified in the following list: </p>
56
57	<dl>
58		<dt>UNO: </dt>
59		<dd>The any carries normal UNO types, which can be any base type,
60		struct, sequence, enum, or interface.  </dd>
61
62		<dt>OLE: 	</dt>
63		<dd>The any carries an <atom>unsigned long</atom> (on 32-bit systems)
64		or an <atom>unsigned hyper</atom> (on 64-bit systems), which is
65		interpreted as a variant pointer. The any does not control the
66		lifetime of the represented variant. That implies that the caller
67		has the responsibility of freeing the OLE resources represented
68		by the any value.  </dd>
69
70		<dt>JAVA: 	</dt>
71		<dd>not yet specified.  </dd>
72
73		<dt>CORBA: </dt>
74		<dd>not yet specified.  </dd>
75	</dl>
76
77	<p>Any implementation can supply its own bridges to other object
78	models by implementing this interface and returning the bridge
79	when the method is called with itself as the first parameter. </p>
80
81	@see com::sun::star::bridge::OleBridgeSupplier
82	@deprecated
83 */
84published interface XBridgeSupplier: com::sun::star::uno::XInterface
85{
86
87	/** creates a bridge to provide an object of one object model with another.
88	 */
89	any createBridge( [in] any modelDepObject,
90			 [in] com::sun::star::uno::Uik MachineId,
91			 [in] long ProcessId,
92			 [in] short sourceModelType,
93			 [in] short destModelType )
94			raises( com::sun::star::lang::IllegalArgumentException );
95
96};
97
98}; }; }; };
99
100/*=============================================================================
101
102=============================================================================*/
103#endif
104