update dev300-m58
[ooovba.git] / offapi / com / sun / star / ucb / XContentAccess.idl
blob0851ebeafad539b4a9efdbe0a2e7caaf994c67eb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XContentAccess.idl,v $
10 * $Revision: 1.9 $
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_XContentAccess_idl__
31 #define __com_sun_star_ucb_XContentAccess_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 //=============================================================================
39 module com { module sun { module star { module ucb {
41 published interface XContent;
42 published interface XContentIdentifier;
44 //=============================================================================
45 /** specifies methods for obtaining information on a content in different
46 levels.
48 <p>For example, if there is a cursor which points to <type>XContent</type>s,
49 this interface could be used to give the user access to the content under
50 the cursor. If the client only needs the identifier string of the content,
51 there is no need to first create the content object, then to obtain the
52 string from it and after that to release the content.
54 @version 1.0
55 @author Kai Sommerfeld
56 @see XContent
57 @see XContentIdentifier
60 published interface XContentAccess : com::sun::star::uno::XInterface
62 //-------------------------------------------------------------------------
63 /** returns the identifier string of the content ( "cheap method" ).
65 <p>Note that this string can be used later to recreate the content.
67 @returns
68 the identifier string.
70 string queryContentIdentifierString();
72 //-------------------------------------------------------------------------
73 /** returns the identifier object of the content.
75 @returns
76 the identifier object.
78 XContentIdentifier queryContentIdentifier();
80 //-------------------------------------------------------------------------
81 /** returns the content ( "most expensive method" ).
83 @returns
84 the content.
86 XContent queryContent();
89 //=============================================================================
91 }; }; }; };
93 #endif