1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 module com
{ module sun
{ module star
{ module graphic
23 /** This service describes all graphic properties that are available
24 via the com::sun::star::beans::XPropertySet interface
28 published service GraphicDescriptor
30 /** The property interface by which the properties of all
31 supported services are exchanged
33 interface ::com
::sun
::star
::beans
::XPropertySet
;
35 /** The type of the graphic
39 [property
] byte GraphicType
;
41 /** The MimeType of the loaded graphic
43 <p> The mime can be the original mime type of the graphic
44 source the graphic container was constructed from or it
45 can be the internal mime type image/x-vclgraphic, in which
46 case the original mime type is not available anymore</p>
48 <p> Currently, the following mime types are supported for
54 <li>image/x-photo-cd</li>
58 <li>image/x-xbitmap</li>
59 <li>image/x-xpixmap</li>
60 <li>image/x-portable-bitmap</li>
61 <li>image/x-portable-graymap</li>
62 <li>image/x-portable-pixmap</li>
63 <li>image/x-cmu-raster</li>
64 <li>image/x-targa</li>
65 <li>image/x-photoshop</li>
73 <li>image/svg+xml</li>
74 <li>application/pdf</li>
75 <li>image/x-vclgraphic</li>
79 [property
] string MimeType
;
81 /** The Size of the graphic in pixel.
83 <p> This property may not be available in case of
84 vector graphics or if the pixel size can not be
85 determined correctly for some formats without loading
88 [optional, property
] ::com
::sun
::star
::awt
::Size SizePixel
;
90 /** The Size of the graphic in 100th mm.
92 <p> This property may not be available in case of
93 pixel graphics or if the logical size can not be
94 determined correctly for some formats without loading
97 [optional, property
] ::com
::sun
::star
::awt
::Size Size100thMM
;
99 /** The number of bits per pixel used for the pixel graphic
101 <p> This property is not available for vector
102 graphics and may not be available for some kinds
103 of pixel graphics</p>
105 [optional, property
] byte BitsPerPixel
;
107 /** Indicates that it is a transparent graphic
109 <p>This property is always `TRUE` for vector graphics.
110 The status of this flag is not always clear if the
111 graphic was not loaded at all, e.g. in case of just
112 querying for the GraphicDescriptor.</p>
114 [optional, property
] boolean Transparent
;
116 /** Indicates that it is a pixel graphic with an alpha channel
118 <p>The status of this flag is not always clear if the
119 graphic was not loaded at all, e.g. in case of just
120 querying for the GraphicDescriptor</p>
122 [optional, property
] boolean Alpha
;
124 /** Indicates that it is a graphic that consists of several
125 frames that can be played as an animation
127 <p>The status of this flag is not always clear if the
128 graphic was not loaded at all, e.g. in case of just
129 querying for the GraphicDescriptor</p>
131 [optional, property
] boolean Animated
;
133 /** Indicates that the graphic is an external linked graphic
135 @since LibreOffice 6.1
137 [optional, property
] boolean Linked
;
139 /** The URL of the location from where the graphic was loaded from
141 @since LibreOffice 6.1
143 [optional, property
] string OriginURL
;
148 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */