1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_drawing_GraphicExportFilter_idl__ 24#define __com_sun_star_drawing_GraphicExportFilter_idl__ 25 26#ifndef __com_sun_star_document_XFilter_idl__ 27#include <com/sun/star/document/XFilter.idl> 28#endif 29 30#ifndef __com_sun_star_document_XExporter_idl__ 31#include <com/sun/star/document/XExporter.idl> 32#endif 33 34#ifndef __com_sun_star_document_XMimeTypeInfo_idl__ 35#include <com/sun/star/document/XMimeTypeInfo.idl> 36#endif 37 38//============================================================================= 39 40 module com { module sun { module star { module drawing { 41 42//============================================================================= 43 44/** a component that supports this service lets you export pages, shapes, or 45 groups of shapes from a <type>DrawingDocument</type> to a file in one of the 46 file formats supported by the component. 47*/ 48published service GraphicExportFilter 49{ 50 /** calling <method scope="com::sun::star::document">XFilter::filter</method> 51 starts the export of the graphic file. 52 53 <p>The following properties from the 54 <type scope="com::sun::star::document">MediaDescriptor</type> are 55 supported:</p> 56 57 <ul> 58 <li> 59 <member scope="com::sun::star::document">MediaDescriptor::MediaType</member> 60 <p>Depending on the export filters supported by this component, 61 this is the mime type of the target graphic file.</p> 62 <p>Possible values are:</p> 63 <ul> 64 <li>image/x-MS-bmp</li> 65 <li>application/dxf</li> 66 <li>application/postscript</li> 67 <li>image/gif</li> 68 <li>image/jpeg</li> 69 <li>image/png</li> 70 <li>image/x-pict</li> 71 <li>image/x-pcx</li> 72 <li>image/x-portable-bitmap</li> 73 <li>image/x-portable-graymap</li> 74 <li>image/x-portable-pixmap</li> 75 <li>image/x-cmu-raster</li> 76 <li>image/targa</li> 77 <li>image/tiff</li> 78 <li>image/x-xbitmap</li> 79 <li>image/x-xpixmap</li> 80 <li>image/svg+xml</li> 81 </ul> 82 <p>Ask the interface <type scope="com::sun::star::document">XMimeTypeInfo</type> 83 for all values supported by the component.</p> 84 </li> 85 <li> 86 <member scope="com::sun::star::document">MediaDescriptor::URL</member> 87 <p>This is the target url of the file that will be created during export.</p> 88 </li> 89 </ul> 90 */ 91 interface ::com::sun::star::document::XFilter; 92 93 /** sets the source component for this export filter. 94 95 <p>This could either be a <type>DrawPage</type>, a <type>Shape</type> 96 or a <type>Shapes</type>.</p> 97 */ 98 interface ::com::sun::star::document::XExporter; 99 100 /** lets you query the supported mime types by this component */ 101 interface ::com::sun::star::document::XMimeTypeInfo; 102}; 103 104//============================================================================= 105 106}; }; }; }; 107 108#endif 109 110