1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef __com_sun_star_gallery_GalleryItem_idl__
29#define __com_sun_star_gallery_GalleryItem_idl__
30
31#ifndef __com_sun_star_gallery_XGalleryItem_idl__
32#include <com/sun/star/gallery/XGalleryItem.idl>
33#endif
34#ifndef __com_sun_star_beans_XPropertySet_idl__
35#include <com/sun/star/beans/XPropertySet.idl>
36#endif
37#ifndef __com_sun_star_graphic_XGraphic_idl__
38#include <com/sun/star/graphic/XGraphic.idl>
39#endif
40#ifndef __com_sun_star_lang_XComponent_idl__
41#include <com/sun/star/lang/XComponent.idl>
42#endif
43
44//=============================================================================
45
46module com {  module sun {  module star {  module gallery {
47
48//=============================================================================
49
50/** service to get access to the properties of a single Gallery item
51 */
52service GalleryItem
53{
54	interface ::com::sun::star::gallery::XGalleryItem;
55
56    interface ::com::sun::star::beans::XPropertySet;
57
58	/** The type of the Gallery item
59
60		@see GalleryItemType
61	*/
62	[readonly, property] byte GalleryItemType;
63
64	/** the URL of the Gallery item
65
66		<p>The interpretation of the URL depends on the type
67		of the Gallery item. In case of graphic and media items,
68		the URL is a 'real' URL, in case of drawings it is a private
69		URL</p>
70	 */
71	[readonly, property] string URL;
72
73	/** the title of the Gallery item
74	 */
75	[property] string Title;
76
77	/** the thumbnail of the Gallery item
78
79		<p>The thumbnail may be either a pixel or a vector graphic</p>
80	 */
81	[readonly, property] com::sun::star::graphic::XGraphic Thumbnail;
82
83	/** the graphic content of the Gallery item
84
85		<p>This is an optional property and may not available for every item</p>
86	 */
87	[optional, readonly, property ] ::com::sun::star::graphic::XGraphic Graphic;
88
89	/** the drawing content of the Gallery item
90
91		<p>This is an optional property and may not available for every item</p>
92	 */
93	[optional, readonly, property ] ::com::sun::star::lang::XComponent Drawing;
94};
95
96//=============================================================================
97
98}; }; }; };
99
100#endif
101