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: PackageFolder.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_packages_PackageFolder_idl__
31 #define __com_sun_star_packages_PackageFolder_idl__
33 #ifndef __com_sun_star_container_XNamed_idl__
34 #include
<com
/sun
/star
/container
/XNamed.idl
>
37 #ifndef __com_sun_star_container_XChild_idl__
38 #include
<com
/sun
/star
/container
/XChild.idl
>
41 #ifndef __com_sun_star_container_XNameContainer_idl__
42 #include
<com
/sun
/star
/container
/XNameContainer.idl
>
45 #ifndef __com_sun_star_beans_XPropertySet_idl__
46 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
49 #ifndef __com_sun_star_container_XEnumerationAccess_udl__
50 #include
<com
/sun
/star
/container
/XEnumerationAccess.idl
>
52 //=============================================================================
54 module com
{ module sun
{ module star
{ module packages
{
56 //=============================================================================
58 The PackageFolder service represents a single folder or directory within
59 a Package. Instances of this service can only be constructed by an
60 implementation of the Package service and not via the service manager.
62 published service PackageFolder
65 This interface is used to get or set the name of the folder.
67 interface com
::sun
::star
::container
::XNamed
;
69 The getParent method of XChild will return the PackageFolder that
70 contains this PackageFolder or nothing if this PackageFolder is
71 the root PackageFolder.
73 setParent will move the PackageFolder.
75 interface com
::sun
::star
::container
::XChild
;
77 This interface describes all of the PackageFolders and PackageStreams
78 which are contained within this instance of the PackageFolder service.
80 XElementAccess::getElementType returns service PackageStream
81 XNameAccess::getByName returns either a PackageFolder or a PackageStream
83 XNameAccess::getElementNames returns an uno::Sequence of strings containing
84 the names of all children stored in the PackageFolder
86 interface com
::sun
::star
::container
::XNameContainer
;
88 This interface will return an implementation of service
89 PackageFolderEnumeration, which represents an iterator over the children
90 of the PackageFolder, or the PackageStreams and PackageFolders contained
91 within this instance of the PackageFolder service.
93 This provides a "snapshot" of the contents of the
94 PackageFolder at the time of construction. It is the responsibility of the
95 caller to ensure that any given member of the enumeration refers to a valid
96 PackageStream or PackageFolder.
99 interface com
::sun
::star
::container
::XEnumerationAccess
;
102 This interface provides access to the properties of the package entry.
103 Currently, this only supports one entry which is a string called
104 MediaType. This contains the MIME type of the stream (eg. "text/html").
105 For PackageFolders, this is always an empty string.
107 interface com
::sun
::star
::beans
::XPropertySet
;