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 .
21 module com
{ module sun
{ module star
{ module ucb
{
23 /** The Package Content Provider (PCP) implements a ContentProvider
24 for the UniversalContentBroker (UCB).
26 <p>It provides access to packages ( zip / jar archive files ) containing
29 @see com::sun::star::ucb::Content
31 published service PackageContentProvider
33 /** provides two types of contents: Stream and Folder.
40 A PCP Stream (PackageStreamContent) is a content which
41 represents a file inside a package. It is always contained in a PCP
42 Folder. A PCP Stream has no children.
45 A PCP Folder (PackageFolderContent) is a container for
46 other PCP Folders and PCP Streams.
50 <p><b>URL Scheme for PCP Contents</b>
52 <p>Each HCP content has an identifier corresponding to the following
57 package-URL = "vnd.sun.star.pkg://" orig-URL [ abs-path ]
60 abs-path = "/" path-segments
63 path-segments = segment *( "/" segment )
69 pchar = unreserved | escaped | ":" | "@" | "&" | "="
73 unreserved = alphanum | mark
76 mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
82 orig-URL = 1 *( unreserved | escaped | "$" | "," | ";"
83 | ":" | "@" | "&" | "&" | "=" | "+"
91 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/
92 ( The root folder of the package located at file:///e:/my.xsw )
95 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content
96 ( The folder/stream named "Content" that is contained in the root
97 folder of the located at file:///e:/my.xsw )
100 vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content%20A
101 ( The folder/stream named "Content A" that is contained in the root
102 folder of the located at file:///e:/my.xsw )
108 interface com
::sun
::star
::ucb
::XContentProvider
;
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */