merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / embed / XLinkFactory.idl
blobe4a84c6e9c21e5f55cb027e6fdba76ae153b8c3c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XLinkFactory.idl,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_embed_XLinkFactory_idl__
31 #define __com_sun_star_embed_XLinkFactory_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_embed_XStorage_idl__
38 #include <com/sun/star/embed/XStorage.idl>
39 #endif
41 #ifndef __com_sun_star_io_IOException_idl__
42 #include <com/sun/star/io/IOException.idl>
43 #endif
45 #ifndef __com_sun_star_embed_WrongStateException_idl__
46 #include <com/sun/star/embed/WrongStateException.idl>
47 #endif
49 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
50 #include <com/sun/star/lang/IllegalArgumentException.idl>
51 #endif
53 #ifndef __com_sun_star_beans_PropertyValue_idl__
54 #include <com/sun/star/beans/PropertyValue.idl>
55 #endif
57 //============================================================================
59 module com { module sun { module star { module embed {
61 //============================================================================
62 /** allows to create and initialize a new link of specified type.
64 interface XLinkFactory: com::sun::star::uno::XInterface
66 //------------------------------------------------------------------------
67 /** creates a new link and transport parameters for persistent
68 initialization.
70 <p>
71 This method can be used to have a full control over persistence
72 initialization of a link.
73 </p>
75 @param aClassID
76 the class id of the new object
78 @param aClassName
79 the class name of the new object
81 @param xStorage
82 a parent storage the entry should be created in
84 @param sEntryName
85 a name for the entry
87 @param aArgs
88 <type scope="com::sun::star::document">MediaDescriptor</type>
89 that contains source for the link
91 @param aObjectArgs
92 optional parameters for the object persistence initialization
93 see also
94 <type scope="com::sun::star::embed">EmbeddedObjectDescriptor</type>
96 @throws ::com::sun::star::lang::IllegalArgumentException
97 one of arguments is illegal
99 @throws com::sun::star::io::IOException
100 in case of io problems during opening\creation
102 @throws com::sun::star::uno::Exception
103 in case of other problems
105 ::com::sun::star::uno::XInterface createInstanceLinkUserInit(
106 [in] sequence< byte > aClassID,
107 [in] string sClassName,
108 [in] ::com::sun::star::embed::XStorage xStorage,
109 [in] string sEntryName,
110 [in] sequence< ::com::sun::star::beans::PropertyValue > aArgs,
111 [in] sequence< ::com::sun::star::beans::PropertyValue > aObjectArgs )
112 raises( ::com::sun::star::lang::IllegalArgumentException,
113 ::com::sun::star::io::IOException,
114 ::com::sun::star::uno::Exception );
117 //============================================================================
119 }; }; }; };
121 #endif