Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / gallery / GalleryItem.idl
blob848973e9985b4efa9a7f5c430422a74acdc70e80
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef __com_sun_star_gallery_GalleryItem_idl__
21 #define __com_sun_star_gallery_GalleryItem_idl__
23 #include <com/sun/star/gallery/XGalleryItem.idl>
24 #include <com/sun/star/beans/XPropertySet.idl>
25 #include <com/sun/star/graphic/XGraphic.idl>
26 #include <com/sun/star/lang/XComponent.idl>
29 module com { module sun { module star { module gallery {
32 /** service to get access to the properties of a single Gallery item
34 service GalleryItem
36 interface ::com::sun::star::gallery::XGalleryItem;
38 interface ::com::sun::star::beans::XPropertySet;
40 /** The type of the Gallery item
42 @see GalleryItemType
44 [readonly, property] byte GalleryItemType;
46 /** the URL of the Gallery item
48 <p>The interpretation of the URL depends on the type
49 of the Gallery item. In case of graphic and media items,
50 the URL is a "real" URL, in case of drawings it is a private
51 URL</p>
53 [readonly, property] string URL;
55 /** the title of the Gallery item
57 [property] string Title;
59 /** the thumbnail of the Gallery item
61 <p>The thumbnail may be either a pixel or a vector graphic</p>
63 [readonly, property] com::sun::star::graphic::XGraphic Thumbnail;
65 /** the graphic content of the Gallery item
67 <p>This is an optional property and may not available for every item</p>
69 [optional, readonly, property ] ::com::sun::star::graphic::XGraphic Graphic;
71 /** the drawing content of the Gallery item
73 <p>This is an optional property and may not available for every item</p>
75 [optional, readonly, property ] ::com::sun::star::lang::XComponent Drawing;
79 }; }; }; };
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */