1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module bridge
{
26 /** defines the interface for creating bridges to other object models.
28 <p>Because bridges sometimes can not be generated in an address space,
29 the implementation needs to check the address space of the caller by
30 comparing the machine and process ID against its own. These IDs are
31 provided by the UNO runtime. </p>
33 <p>All objects, whether they are part of the UNO object model or not,
34 are carried in an `any`. The representation of this object
35 is heavily model-dependent and has to be specified in the following list: </p>
39 <dd>The any carries normal UNO types, which can be any base type,
40 struct, sequence, enum, or interface. </dd>
43 <dd>The any carries an `unsigned long` (on 32-bit systems)
44 or an `unsigned hyper` (on 64-bit systems), which is
45 interpreted as a variant pointer. The any does not control the
46 lifetime of the represented variant. That implies that the caller
47 has the responsibility of freeing the OLE resources represented
48 by the any value. </dd>
51 <dd>not yet specified. </dd>
54 <p>Any implementation can supply its own bridges to other object
55 models by implementing this interface and returning the bridge
56 when the method is called with itself as the first parameter. </p>
58 @see com::sun::star::bridge::OleBridgeSupplier
61 published
interface XBridgeSupplier
: com
::sun
::star
::uno
::XInterface
64 /** creates a bridge to provide an object of one object model with another.
66 any createBridge
( [in] any modelDepObject
,
67 [in] com
::sun
::star
::uno
::Uik MachineId
,
69 [in] short sourceModelType
,
70 [in] short destModelType
)
71 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */