1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_ucb_PackageContentProvider_idl__
20 #define __com_sun_star_ucb_PackageContentProvider_idl__
22 #include
<com
/sun
/star
/ucb
/XContentProvider.idl
>
25 module com
{ module sun
{ module star
{ module ucb
{
27 /** The Package Content Provider (PCP) implements a ContentProvider
28 for the UniversalContentBroker (UCB).
30 <p>It provides access to packages ( zip / jar archive files ) containing
33 @see com::sun::star::ucb::Content
35 published service PackageContentProvider
37 /** provides two types of contents: Stream and Folder.
44 A PCP Stream (PackageStreamContent) is a content which
45 represents a file inside a package. It is always contained in a PCP
46 Folder. A PCP Stream has no children.
49 A PCP Folder (PackageFolderContent) is a container for
50 other PCP Folders and PCP Streams.
54 <p><b>URL Scheme for PCP Contents</b>
56 <p>Each HCP content has an identifier corresponding to the following
61 package-URL = "vnd.sun.star.pkg://" orig-URL [ abs-path ]
64 abs-path = "/" path-segments
67 path-segments = segment *( "/" segment )
73 pchar = unreserved | escaped | ":" | "@" | "&" | "="
77 unreserved = alphanum | mark
80 mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
86 orig-URL = 1 *( unreserved | escaped | "$" | "," | ";"
87 | ":" | "@" | "&" | "&" | "=" | "+"
95 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/
96 ( The root folder of the package located at file:///e:/my.xsw )
99 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content
100 ( The folder/stream named "Content" that is contained in the root
101 folder of the located at file:///e:/my.xsw )
104 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content%20A
105 ( The folder/stream named "Content A" that is contained in the root
106 folder of the located at file:///e:/my.xsw )
112 interface com
::sun
::star
::ucb
::XContentProvider
;
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */