1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XLinkFactory.idl,v $
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
>
37 #ifndef __com_sun_star_embed_XStorage_idl__
38 #include
<com
/sun
/star
/embed
/XStorage.idl
>
41 #ifndef __com_sun_star_io_IOException_idl__
42 #include
<com
/sun
/star
/io
/IOException.idl
>
45 #ifndef __com_sun_star_embed_WrongStateException_idl__
46 #include
<com
/sun
/star
/embed
/WrongStateException.idl
>
49 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
50 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
53 #ifndef __com_sun_star_beans_PropertyValue_idl__
54 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
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
71 This method can be used to have a full control over persistence
72 initialization of a link.
76 the class id of the new object
79 the class name of the new object
82 a parent storage the entry should be created in
88 <type scope="com::sun::star::document">MediaDescriptor</type>
89 that contains source for the link
92 optional parameters for the object persistence initialization
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 //============================================================================