xref: /AOO41X/main/udkapi/com/sun/star/bridge/XBridgeSupplier.idl (revision 408a4873fc8bcc602c90ea4598886bb71abf0675)
1*408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*408a4873SAndrew Rist * distributed with this work for additional information
6*408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9*408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*408a4873SAndrew Rist * software distributed under the License is distributed on an
15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17*408a4873SAndrew Rist * specific language governing permissions and limitations
18*408a4873SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*408a4873SAndrew Rist *************************************************************/
21*408a4873SAndrew Rist
22*408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_bridge_XBridgeSupplier_idl__
24cdf0e10cSrcweir#define __com_sun_star_bridge_XBridgeSupplier_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_uno_Uik_idl__
31cdf0e10cSrcweir#include <com/sun/star/uno/Uik.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
35cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir
39cdf0e10cSrcweir//=============================================================================
40cdf0e10cSrcweir
41cdf0e10cSrcweir module com {  module sun {  module star {  module bridge {
42cdf0e10cSrcweir
43cdf0e10cSrcweir//=============================================================================
44cdf0e10cSrcweir
45cdf0e10cSrcweir
46cdf0e10cSrcweir/** defines the interface for creating bridges to other object models.
47cdf0e10cSrcweir
48cdf0e10cSrcweir	<p>Because bridges sometimes can not be generated in an address space,
49cdf0e10cSrcweir	the implementation needs to check the address space of the caller by
50cdf0e10cSrcweir	comparing the machine and process ID against its own. These IDs are
51cdf0e10cSrcweir	provided by the UNO runtime.  </p>
52cdf0e10cSrcweir
53cdf0e10cSrcweir	<p>All objects, whether they are part of the UNO object model or not,
54cdf0e10cSrcweir	are carried in an <atom>any</atom>.  The representation of this object
55cdf0e10cSrcweir	is heavily model-dependent and has to be specified in the following list: </p>
56cdf0e10cSrcweir
57cdf0e10cSrcweir	<dl>
58cdf0e10cSrcweir		<dt>UNO: </dt>
59cdf0e10cSrcweir		<dd>The any carries normal UNO types, which can be any base type,
60cdf0e10cSrcweir		struct, sequence, enum, or interface.  </dd>
61cdf0e10cSrcweir
62cdf0e10cSrcweir		<dt>OLE: 	</dt>
63cdf0e10cSrcweir		<dd>The any carries an <atom>unsigned long</atom> (on 32-bit systems)
64cdf0e10cSrcweir		or an <atom>unsigned hyper</atom> (on 64-bit systems), which is
65cdf0e10cSrcweir		interpreted as a variant pointer. The any does not control the
66cdf0e10cSrcweir		lifetime of the represented variant. That implies that the caller
67cdf0e10cSrcweir		has the responsibility of freeing the OLE resources represented
68cdf0e10cSrcweir		by the any value.  </dd>
69cdf0e10cSrcweir
70cdf0e10cSrcweir		<dt>JAVA: 	</dt>
71cdf0e10cSrcweir		<dd>not yet specified.  </dd>
72cdf0e10cSrcweir
73cdf0e10cSrcweir		<dt>CORBA: </dt>
74cdf0e10cSrcweir		<dd>not yet specified.  </dd>
75cdf0e10cSrcweir	</dl>
76cdf0e10cSrcweir
77cdf0e10cSrcweir	<p>Any implementation can supply its own bridges to other object
78cdf0e10cSrcweir	models by implementing this interface and returning the bridge
79cdf0e10cSrcweir	when the method is called with itself as the first parameter. </p>
80cdf0e10cSrcweir
81cdf0e10cSrcweir	@see com::sun::star::bridge::OleBridgeSupplier
82cdf0e10cSrcweir	@deprecated
83cdf0e10cSrcweir */
84cdf0e10cSrcweirpublished interface XBridgeSupplier: com::sun::star::uno::XInterface
85cdf0e10cSrcweir{
86cdf0e10cSrcweir
87cdf0e10cSrcweir	/** creates a bridge to provide an object of one object model with another.
88cdf0e10cSrcweir	 */
89cdf0e10cSrcweir	any createBridge( [in] any modelDepObject,
90cdf0e10cSrcweir			 [in] com::sun::star::uno::Uik MachineId,
91cdf0e10cSrcweir			 [in] long ProcessId,
92cdf0e10cSrcweir			 [in] short sourceModelType,
93cdf0e10cSrcweir			 [in] short destModelType )
94cdf0e10cSrcweir			raises( com::sun::star::lang::IllegalArgumentException );
95cdf0e10cSrcweir
96cdf0e10cSrcweir};
97cdf0e10cSrcweir
98cdf0e10cSrcweir}; }; }; };
99cdf0e10cSrcweir
100cdf0e10cSrcweir/*=============================================================================
101cdf0e10cSrcweir
102cdf0e10cSrcweir=============================================================================*/
103cdf0e10cSrcweir#endif
104