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: PackageContentProvider.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_ucb_PackageContentProvider_idl__
31 #define __com_sun_star_ucb_PackageContentProvider_idl__
33 #ifndef __com_sun_star_ucb_XContentProvider_idl__
34 #include
<com
/sun
/star
/ucb
/XContentProvider.idl
>
37 //=============================================================================
39 module com
{ module sun
{ module star
{ module ucb
{
41 //=============================================================================
42 /** The Package Content Provider (PCP) implements a <type>ContentProvider</type>
43 for the <type>UniversalContentBroker</type> (UCB).
45 <p>It provides access to packages ( zip / jar archive files ) containing
48 @see com::sun::star::ucb::Content
50 published service PackageContentProvider
52 //-------------------------------------------------------------------------
53 /** provides two types of contents: Stream and Folder.
60 A PCP Stream (<type>PackageStreamContent</type>) is a content which
61 represents a file inside a package. It is always contained in a PCP
62 Folder. A PCP Stream has no children.
65 A PCP Folder (<type>PackageFolderContent</type>) is a container for
66 other PCP Folders and PCP Streams.
70 <p><b>URL Scheme for PCP Contents</b>
72 <p>Each HCP content has an identifier corresponding to the following
77 package-URL = "vnd.sun.star.pkg://" orig-URL [ abs-path ]
80 abs-path = "/" path-segments
83 path-segements = segment *( "/" segment )
89 pchar = unreserved | escaped | ":" | "@" | "&" | "="
93 unreserved = alphanum | mark
96 mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
102 orig-URL = 1 *( unreserved | escaped | "$" | "," | ";"
103 | ":" | "@" | "&" | "&" | "=" | "+"
111 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/
112 ( The root folder of the package located at file:///e:/my.xsw )
115 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content
116 ( The folder/stream named "Content" that is contained in the root
117 folder of the located at file:///e:/my.xsw )
120 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content%20A
121 ( The folder/stream named "Content A" that is contained in the root
122 folder of the located at file:///e:/my.xsw )
128 interface com
::sun
::star
::ucb
::XContentProvider
;
131 //=============================================================================