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_reflection_XProxyFactory_idl__
28#define __com_sun_star_reflection_XProxyFactory_idl__
29
30#ifndef __com_sun_star_uno_XInterface_idl__
31#include <com/sun/star/uno/XInterface.idl>
32#endif
33#ifndef __com_sun_star_uno_XAggregation_idl__
34#include <com/sun/star/uno/XAggregation.idl>
35#endif
36
37//=============================================================================
38
39 module com {  module sun {  module star {  module reflection {
40
41//=============================================================================
42
43/** Factory interface to produce proxy objects.
44
45	@deprecated
46    Aggregation will no longer be supported as a high-level concept of UNO.
47    You may still have the option to implement an UNO object consisting of
48    several single objects in your specific programming language, though this
49    depends on your programming language.
50    Thus this interface is deprecated, too.
51*/
52published interface XProxyFactory: com::sun::star::uno::XInterface
53{
54	/** This method creates a new proxy object that acts on behalf of the given
55        target object.<br>
56        The proxy delegates calls to the given target object.
57        In addition, it is aggregatable, thus it is possible to
58        intercept calls on the proxy's interfaces.
59
60        @attention
61        The proxy object is UNO conform, but does NOT provide original target
62        interfaces on queryInterface() calls.  This may lead to problems
63        regarding object identity, e.g. when dealing with listener proxies.
64
65        @param xTarget
66               target object
67        @return
68                proxy object
69    */
70	com::sun::star::uno::XAggregation createProxy(
71		[in] com::sun::star::uno::XInterface xTarget );
72};
73
74//=============================================================================
75
76}; }; }; };
77
78/*=============================================================================
79
80=============================================================================*/
81#endif
82