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: StorageFactory.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 ************************************************************************/
31 #ifndef __com_sun_star_embed_StorageFactory_idl__
32 #define __com_sun_star_embed_StorageFactory_idl__
34 #ifndef __com_sun_star_lang_XSingleServiceFactory_idl__
35 #include
<com
/sun
/star
/lang
/XSingleServiceFactory.idl
>
39 //============================================================================
41 module com
{ module sun
{ module star
{ module embed
{
43 //============================================================================
44 /** The <type>StorageFactory</type> is a service that allows to create
45 a storage based on either stream or URL.
47 service StorageFactory
49 // ----------------------------------------------------------------------
50 /** A storage can be created through this interface.
54 <method scope="com::sun::star::lang">XSingleServiceFactory::createInstance</method>
55 call is used the result storage will be open in readwrite mode based
56 on an arbitrary medium.
61 <method scope="com::sun::star::lang">XSingleServiceFactory::createInstanceWithArguments</method>
62 call is used a sequence of the following parameters can be used:
68 specifies source of the object, it can be a string
70 <type scope="com::sun::star::io">XStream</type>
72 <type scope="com::sun::star::io">XInputStream</type>;
74 <type scope="com::sun::star::io">XStream</type>
76 the <type scope="com::sun::star::io">XSeekable</type>
77 interface must be supported.
82 specifies mode the storage should be open in, can take
83 values from <type>ElementModes</type> constant set.
89 <type scope="com::sun::star::document">MediaDescryptor</type>
90 to the storage so some parts can be used for
91 initialization, it can be for example
92 <type scope="com::sun::star::task">XInteractionHandler</type>
93 implementation, password for the storage and repair
99 The parameters are optional, that means that sequence can be empty or
100 contain only first parameter, or first and second one. In case
101 no parameters are provided the call works the same way as
102 <member scope="com::sun::star::lang">XSingleServiceFactory::createInstance</member>.
103 In case only first parameter is provided, the storage is opened in
108 The opened root storage can support read access in addition to
112 interface ::com
::sun
::star
::lang
::XSingleServiceFactory
;
115 //============================================================================