1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef com_sun_star_graphic_XGraphicProvider_idl 29*cdf0e10cSrcweir#define com_sun_star_graphic_XGraphicProvider_idl 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#include <com/sun/star/io/XInputStream.idl> 32*cdf0e10cSrcweir#include <com/sun/star/io/XOutputStream.idl> 33*cdf0e10cSrcweir#include <com/sun/star/io/IOException.idl> 34*cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl> 35*cdf0e10cSrcweir#include <com/sun/star/lang/WrappedTargetException.idl> 36*cdf0e10cSrcweir#include <com/sun/star/beans/PropertyValues.idl> 37*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 38*cdf0e10cSrcweir#include <com/sun/star/graphic/XGraphic.idl> 39*cdf0e10cSrcweir 40*cdf0e10cSrcweirmodule com { module sun { module star { module graphic 41*cdf0e10cSrcweir{ 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir/** This interface acts as the main interface to handle graphic 44*cdf0e10cSrcweir content. It is used to load graphics, store graphics and 45*cdf0e10cSrcweir to get information about unloaded graphics 46*cdf0e10cSrcweir */ 47*cdf0e10cSrcweirpublished interface XGraphicProvider : ::com::sun::star::uno::XInterface 48*cdf0e10cSrcweir{ 49*cdf0e10cSrcweir /** Calling this method returns a 50*cdf0e10cSrcweir <type scope="com::sun::star::beans">XPropertySet</type> 51*cdf0e10cSrcweir interface that gives access to the properties of the 52*cdf0e10cSrcweir unloaded graphic 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir <p>In most cases, this method will be used to query the 55*cdf0e10cSrcweir mime type of the graphic and, in the case of pixel graphics, 56*cdf0e10cSrcweir the resulting size after loading</p> 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir @param MediaProperties 59*cdf0e10cSrcweir A sequence of property values to describe the location 60*cdf0e10cSrcweir of the graphic, for which the attributes should be returned 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir @returns 63*cdf0e10cSrcweir A <type scope="com::sun::star::beans">XPropertySet</type> interface 64*cdf0e10cSrcweir to get access to the different graphic properties 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir @see MediaProperties 67*cdf0e10cSrcweir @see GraphicDescriptor 68*cdf0e10cSrcweir @see com::sun::star::beans::PropertyValues 69*cdf0e10cSrcweir */ 70*cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet queryGraphicDescriptor( [in] ::com::sun::star::beans::PropertyValues MediaProperties ) 71*cdf0e10cSrcweir raises( ::com::sun::star::io::IOException, 72*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 73*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException ); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir /** Calling this method returns a <type>XGraphic</type> interface 78*cdf0e10cSrcweir that holds the graphic content after loading the graphic 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir @param MediaProperties 81*cdf0e10cSrcweir A sequence of property values to describe the location 82*cdf0e10cSrcweir of the graphic from which the graphic is to be loaded 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir @returns 85*cdf0e10cSrcweir The <type>XGraphic</type> interface 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir @see MediaProperties 88*cdf0e10cSrcweir @see XGraphic 89*cdf0e10cSrcweir @see com::sun::star::beans::PropertyValues 90*cdf0e10cSrcweir */ 91*cdf0e10cSrcweir XGraphic queryGraphic( [in] ::com::sun::star::beans::PropertyValues MediaProperties ) 92*cdf0e10cSrcweir raises( ::com::sun::star::io::IOException, 93*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 94*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException ); 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir /** Store the graphic content, represented through the <type>XGraphic</type> 97*cdf0e10cSrcweir interface at the specified location 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir @param Graphic 100*cdf0e10cSrcweir The graphic that should be stored 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir @param MediaProperties 103*cdf0e10cSrcweir A sequence of property values to describe the destination 104*cdf0e10cSrcweir location of the graphic 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir @see XGraphic 107*cdf0e10cSrcweir @see MediaProperties 108*cdf0e10cSrcweir @see com::sun::star::beans::PropertyValues 109*cdf0e10cSrcweir */ 110*cdf0e10cSrcweir void storeGraphic( [in] ::com::sun::star::graphic::XGraphic Graphic, 111*cdf0e10cSrcweir [in] ::com::sun::star::beans::PropertyValues MediaProperties ) 112*cdf0e10cSrcweir raises( ::com::sun::star::io::IOException, 113*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 114*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException ); 115*cdf0e10cSrcweir}; 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir} ; } ; } ; } ; 118*cdf0e10cSrcweir 119*cdf0e10cSrcweir#endif 120