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: XLinkCreator.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_XLinkCreator_idl__
31 #define __com_sun_star_embed_XLinkCreator_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.
64 Methods of this interface does not require specification of the object type,
68 interface XLinkCreator
: com
::sun
::star
::uno
::XInterface
70 //-------------------------------------------------------------------------
71 /** creates a new object based on
72 <type scope="com::sun::star::document">MediaDescriptor</type>
73 and initializes it as a link.
76 In case the entry exists already all it's contents will be ignored and
77 rewritten on storing of the object.
81 a parent storage the entry should be created/opened in
87 <type scope="com::sun::star::document">MediaDescriptor</type>
88 the link will be based on
91 optional parameters for the object persistence initialization,
93 <type scope="com::sun::star::embed">EmbeddedObjectDescriptor</type>
95 @throws ::com::sun::star::lang::IllegalArgumentException
96 the argument is illegal
98 @throws com::sun::star::io::IOException
99 in case of io problems during opening\creation
101 @throws com::sun::star::uno::Exception
102 in case of other problems
104 ::com
::sun
::star
::uno
::XInterface createInstanceLink
(
105 [in] ::com
::sun
::star
::embed
::XStorage xStorage
,
106 [in] string sEntryName
,
107 [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aArgs
,
108 [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aObjectArgs
)
109 raises
( ::com
::sun
::star
::lang
::IllegalArgumentException
,
110 ::com
::sun
::star
::io
::IOException
,
111 ::com
::sun
::star
::uno
::Exception
);
114 //=============================================================================