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: HierarchyContentProvider.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_HierarchyContentProvider_idl__
31 #define __com_sun_star_ucb_HierarchyContentProvider_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 Hierarchy Content Provider (HCP) implements a
43 <type>ContentProvider</type> for the <type>UniversalContentBroker</type>
46 <p>It provides access to a persistent, customizable hierarchy of contents
49 @see com::sun::star::ucb::Content
51 published service HierarchyContentProvider
53 //-------------------------------------------------------------------------
54 /** provides three types of contents: Link, Folder and Root Folder.
61 A HCP Link (<type>HierarchyLinkContent</type>) is a content which
62 points to another (UCB) content. It is always contained in HCP Folder.
63 A HCP Link has no children.
66 A HCP Folder (<type>HierarchyFolderContent</type>) is a container for
67 other HCP Folders and HCP Links.
70 There is at most one instance of a HCP Root Folder
71 ( <type>HierarchyRootFolderContent</type> ) at a time.
72 All other HCP contents are children of this folder. The HCP Root
73 Folder can contain HCP Folders and HCP Links. It has the URL
74 "vnd.sun.star.hier:/".
78 <p><b>URL Scheme for HCP Contents</b>
80 <p>Each HCP content has an identifier corresponding to the following
85 vnd.sun.star.hier:/<path>, where <path> is a
86 hierarchical path of the form <name>/.../<name> and
87 where <name> is a string encoded according to the URL
96 vnd.sun.star.hier:/ (The URL of the HCP Root Folder)
99 vnd.sun.star.hier:/Bookmarks/Sun%20Microsystems%20Home%20Page
102 vnd.sun.star.hier:/Workplace/Printers
108 interface com
::sun
::star
::ucb
::XContentProvider
;
111 //=============================================================================