1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef com_sun_star_graphic_GraphicDescriptor_idl 25cdf0e10cSrcweir#define com_sun_star_graphic_GraphicDescriptor_idl 26cdf0e10cSrcweir 27cdf0e10cSrcweir#include <com/sun/star/graphic/GraphicType.idl> 28cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 29cdf0e10cSrcweir#include <com/sun/star/awt/Size.idl> 30cdf0e10cSrcweir 31cdf0e10cSrcweirmodule com { module sun { module star { module graphic 32cdf0e10cSrcweir{ 33cdf0e10cSrcweir 34cdf0e10cSrcweir/** This service describes all graphic properties that are available 35cdf0e10cSrcweir via the <type scope="com::sun::star::beans">XPropertySet</type> interface 36cdf0e10cSrcweir 37cdf0e10cSrcweir @see XPropertySet 38cdf0e10cSrcweir*/ 39cdf0e10cSrcweirpublished service GraphicDescriptor 40cdf0e10cSrcweir{ 41cdf0e10cSrcweir /** The property interface by which the properties of all 42cdf0e10cSrcweir supported services are exchanged 43cdf0e10cSrcweir */ 44cdf0e10cSrcweir interface ::com::sun::star::beans::XPropertySet; 45cdf0e10cSrcweir 46cdf0e10cSrcweir /** The type of the graphic 47cdf0e10cSrcweir 48cdf0e10cSrcweir @see GraphicType 49cdf0e10cSrcweir */ 50cdf0e10cSrcweir [property] byte GraphicType; 51cdf0e10cSrcweir 52cdf0e10cSrcweir /** The MimeType of the loaded graphic 53cdf0e10cSrcweir 54cdf0e10cSrcweir <p> The mime can be the original mime type of the graphic 55cdf0e10cSrcweir source the graphic container was constructed from or it 56cdf0e10cSrcweir can be the internal mime type image/x-vclgraphic, in which 57cdf0e10cSrcweir case the original mime type is not available anymore</p> 58cdf0e10cSrcweir 59cdf0e10cSrcweir <p> Currently, the following mime types are supported for 60cdf0e10cSrcweir loaded graphics:<\p> 61cdf0e10cSrcweir <ul> 62cdf0e10cSrcweir <li>image/bmp</li> 63cdf0e10cSrcweir <li>image/gif</li> 64cdf0e10cSrcweir <li>image/jpeg</li> 65cdf0e10cSrcweir <li>image/x-photo-cd</li> 66cdf0e10cSrcweir <li>image/x-pcx</li> 67cdf0e10cSrcweir <li>image/png</li> 68cdf0e10cSrcweir <li>image/tiff</li> 69cdf0e10cSrcweir <li>image/x-xbitmap</li> 70cdf0e10cSrcweir <li>image/x-xpixmap</li> 71cdf0e10cSrcweir <li>image/x-portable-bitmap</li> 72cdf0e10cSrcweir <li>image/x-portable-graymap</li> 73cdf0e10cSrcweir <li>image/x-portable-pixmap</li> 74cdf0e10cSrcweir <li>image/x-cmu-raster</li> 75cdf0e10cSrcweir <li>image/x-targa</li> 76cdf0e10cSrcweir <li>image/x-photoshop</li> 77cdf0e10cSrcweir <li>image/x-eps</li> 78cdf0e10cSrcweir <li>image/x-dxf</li> 79cdf0e10cSrcweir <li>image/x-met</li> 80cdf0e10cSrcweir <li>image/x-pict</li> 81cdf0e10cSrcweir <li>image/x-sgf</li> 82cdf0e10cSrcweir <li>image/x-svm</li> 83cdf0e10cSrcweir <li>image/x-wmf</li> 84cdf0e10cSrcweir <li>image/x-sgv</li> 85cdf0e10cSrcweir <li>image/x-emf</li> 86cdf0e10cSrcweir <li>image/x-vclgraphic</li> 87cdf0e10cSrcweir </ul> 88cdf0e10cSrcweir 89cdf0e10cSrcweir */ 90cdf0e10cSrcweir [property] string MimeType; 91cdf0e10cSrcweir 92cdf0e10cSrcweir /** The Size of the graphic in pixel. 93cdf0e10cSrcweir 94cdf0e10cSrcweir <p> This property may not be available in case of 95cdf0e10cSrcweir vector graphics or if the pixel size can not be 96cdf0e10cSrcweir determined correctly for some formats without loading 97cdf0e10cSrcweir the whole graphic</p> 98cdf0e10cSrcweir */ 99cdf0e10cSrcweir [optional, property] ::com::sun::star::awt::Size SizePixel; 100cdf0e10cSrcweir 101cdf0e10cSrcweir /** The Size of the graphic in 100th mm. 102cdf0e10cSrcweir 103cdf0e10cSrcweir <p> This property may not be available in case of 104cdf0e10cSrcweir pixel graphics or if the logical size can not be 105cdf0e10cSrcweir determined correctly for some formats without loading 106cdf0e10cSrcweir the whole graphic</p> 107cdf0e10cSrcweir */ 108cdf0e10cSrcweir [optional, property] ::com::sun::star::awt::Size Size100thMM; 109cdf0e10cSrcweir 110cdf0e10cSrcweir /** The number of bits per pixel used for the pixel graphic 111cdf0e10cSrcweir 112cdf0e10cSrcweir <p> This property is not available for vector 113cdf0e10cSrcweir graphics and may not be available for some kinds 114cdf0e10cSrcweir of pixel graphics</p> 115cdf0e10cSrcweir */ 116cdf0e10cSrcweir [optional, property] byte BitsPerPixel; 117cdf0e10cSrcweir 118cdf0e10cSrcweir /** Indicates that it is a transparent graphic 119cdf0e10cSrcweir 120cdf0e10cSrcweir <p>This property is always <TRUE/> for vector graphics. 121cdf0e10cSrcweir The status of this flag is not always clear if the 122cdf0e10cSrcweir graphic was not loaded at all, e.g. in case of just 123cdf0e10cSrcweir querying for the <type>GraphicDescriptor</type>.</p> 124cdf0e10cSrcweir */ 125cdf0e10cSrcweir [optional, property] boolean Transparent; 126cdf0e10cSrcweir 127cdf0e10cSrcweir /** Indicates that it is a pixel graphic with an alpha channel 128cdf0e10cSrcweir 129cdf0e10cSrcweir <p>The status of this flag is not always clear if the 130cdf0e10cSrcweir graphic was not loaded at all, e.g. in case of just 131cdf0e10cSrcweir querying for the <type>GraphicDescriptor</type></p> 132cdf0e10cSrcweir */ 133cdf0e10cSrcweir [optional, property] boolean Alpha; 134cdf0e10cSrcweir 135cdf0e10cSrcweir /** Indicates that it is a graphic that consists of several 136cdf0e10cSrcweir frames that can be played as an animation 137cdf0e10cSrcweir 138cdf0e10cSrcweir <p>The status of this flag is not always clear if the 139cdf0e10cSrcweir graphic was not loaded at all, e.g. in case of just 140cdf0e10cSrcweir querying for the <type>GraphicDescriptor</type></p> 141cdf0e10cSrcweir */ 142cdf0e10cSrcweir [optional, property] boolean Animated; 143cdf0e10cSrcweir}; 144cdf0e10cSrcweir 145cdf0e10cSrcweir} ; } ; } ; } ; 146cdf0e10cSrcweir 147cdf0e10cSrcweir#endif 148