Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / graphic / GraphicDescriptor.idl
blob248e95f724677e11750f0c5206166c71dcb27272
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_GraphicDescriptor_idl
21 #define com_sun_star_graphic_GraphicDescriptor_idl
23 #include <com/sun/star/graphic/GraphicType.idl>
24 #include <com/sun/star/beans/XPropertySet.idl>
25 #include <com/sun/star/awt/Size.idl>
27 module com { module sun { module star { module graphic
30 /** This service describes all graphic properties that are available
31 via the com::sun::star::beans::XPropertySet interface
33 @see XPropertySet
35 published service GraphicDescriptor
37 /** The property interface by which the properties of all
38 supported services are exchanged
40 interface ::com::sun::star::beans::XPropertySet;
42 /** The type of the graphic
44 @see GraphicType
46 [property] byte GraphicType;
48 /** The MimeType of the loaded graphic
50 <p> The mime can be the original mime type of the graphic
51 source the graphic container was constructed from or it
52 can be the internal mime type image/x-vclgraphic, in which
53 case the original mime type is not available anymore</p>
55 <p> Currently, the following mime types are supported for
56 loaded graphics:</p>
57 <ul>
58 <li>image/bmp</li>
59 <li>image/gif</li>
60 <li>image/jpeg</li>
61 <li>image/x-photo-cd</li>
62 <li>image/x-pcx</li>
63 <li>image/png</li>
64 <li>image/tiff</li>
65 <li>image/x-xbitmap</li>
66 <li>image/x-xpixmap</li>
67 <li>image/x-portable-bitmap</li>
68 <li>image/x-portable-graymap</li>
69 <li>image/x-portable-pixmap</li>
70 <li>image/x-cmu-raster</li>
71 <li>image/x-targa</li>
72 <li>image/x-photoshop</li>
73 <li>image/x-eps</li>
74 <li>image/x-dxf</li>
75 <li>image/x-met</li>
76 <li>image/x-pict</li>
77 <li>image/x-sgf</li>
78 <li>image/x-svm</li>
79 <li>image/x-wmf</li>
80 <li>image/x-sgv</li>
81 <li>image/x-emf</li>
82 <li>image/x-vclgraphic</li>
83 </ul>
86 [property] string MimeType;
88 /** The Size of the graphic in pixel.
90 <p> This property may not be available in case of
91 vector graphics or if the pixel size can not be
92 determined correctly for some formats without loading
93 the whole graphic</p>
95 [optional, property] ::com::sun::star::awt::Size SizePixel;
97 /** The Size of the graphic in 100th mm.
99 <p> This property may not be available in case of
100 pixel graphics or if the logical size can not be
101 determined correctly for some formats without loading
102 the whole graphic</p>
104 [optional, property] ::com::sun::star::awt::Size Size100thMM;
106 /** The number of bits per pixel used for the pixel graphic
108 <p> This property is not available for vector
109 graphics and may not be available for some kinds
110 of pixel graphics</p>
112 [optional, property] byte BitsPerPixel;
114 /** Indicates that it is a transparent graphic
116 <p>This property is always `TRUE` for vector graphics.
117 The status of this flag is not always clear if the
118 graphic was not loaded at all, e.g. in case of just
119 querying for the GraphicDescriptor.</p>
121 [optional, property] boolean Transparent;
123 /** Indicates that it is a pixel graphic with an alpha channel
125 <p>The status of this flag is not always clear if the
126 graphic was not loaded at all, e.g. in case of just
127 querying for the GraphicDescriptor</p>
129 [optional, property] boolean Alpha;
131 /** Indicates that it is a graphic that consists of several
132 frames that can be played as an animation
134 <p>The status of this flag is not always clear if the
135 graphic was not loaded at all, e.g. in case of just
136 querying for the GraphicDescriptor</p>
138 [optional, property] boolean Animated;
141 } ; } ; } ; } ;
143 #endif
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */