Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / graphic / MediaProperties.idl
blob1a1651f3f163d01b18b37c93bc301c8c6d071df7
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_graphic_MediaProperties_idl
21 #define com_sun_star_graphic_MediaProperties_idl
23 #include <com/sun/star/beans/PropertyValues.idl>
24 #include <com/sun/star/io/XInputStream.idl>
25 #include <com/sun/star/io/XStream.idl>
27 module com { module sun { module star { module graphic
30 /** This service describes the properties that are used
31 when using the XGraphicProvider interface methods
33 published service MediaProperties
35 /** Property that describes the location of the source or target
36 of the graphic as URL.
38 <p>A URL can be used instead of the
39 #InputStream or #OutputStream
40 property</p>
42 <p>In addition to the normal protocols like file:// or http://
43 you can use private URLs as follows to get access to graphics
44 lying inside the resource system within an Office context:
46 <ul>
47 <li>private:resource/projectshortname/bitmap/12345</li>
48 <li>private:resource/projectshortname/bitmapex/12345</li>
49 <li>private:resource/projectshortname/image/12345</li>
50 <li>private:resource/projectshortname/imagelist/12345</li>
51 <li>private:resource/projectshortname/imagelist/12345/12</li>
52 </ul>
53 And additionally, GraphicObject scheme URLs like
54 <ul> <li>vnd.sun.star.GraphicObject:10000000000001940000012FB99807BD</li> </ul>
55 can be used to access graphics held by the GraphicCache implementation.
56 </p>
58 <p>Yet more, you can access graphics in the application-wide image
59 repository by specifying URLs of the form
60 <code>private:graphicrepository/<em>&lt;path_in_repository&gt;</em></code>.
61 </p>
63 [optional, property ] string URL;
65 /** This property is only used for loading graphics or querying
66 graphic descriptors
68 <p>A #InputStream can be used instead of the
69 #URL property</p>
71 @see com::sun::star::io::XInputStream
73 [optional, property ] ::com::sun::star::io::XInputStream InputStream;
75 /** This property is only used for storing graphics
77 <p>A #OutputStream can be used instead of the
78 #URL property</p>
80 @see com::sun::star::io::XStream
82 [optional, property ] ::com::sun::star::io::XStream OutputStream;
84 /** This property is only used for storing graphics and describes the
85 format into which the graphic is to be converted
87 <p>At the moment, the following mime types are supported for storing
88 graphics:</p>
90 <ul>
91 <li>image/bmp</li>
92 <li>image/gif</li>
93 <li>image/jpeg</li>
94 <li>image/png</li>
95 <li>image/tiff</li>
96 <li>image/svg+xml</li>
97 <li>image/x-cmu-raster</li>
98 <li>image/x-emf</li>
99 <li>image/x-eps</li>
100 <li>image/x-met</li>
101 <li>image/x-pict</li>
102 <li>image/x-portable-bitmap</li>
103 <li>image/x-portable-pixmap</li>
104 <li>image/x-wmf</li>
105 <li>image/x-svm</li>
106 <li>image/x-xpixmap</li>
107 <li>image/x-vclgraphic</li>
108 </ul>
110 [optional, property ] string MimeType;
112 /** Additional properties that will be passed to the
113 appropriate filter module.
115 [optional, property] ::com::sun::star::beans::PropertyValues FilterData;
118 } ; } ; } ; } ;
120 #endif
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */