LibreOffice
LibreOffice 24.8 SDK API Reference
|
This interface acts as the main interface to handle graphic content. More...
import <XGraphicProvider.idl;
This interface acts as the main interface to handle graphic content.
It is used to load graphics, store graphics and to get information about unloaded graphics
XGraphic queryGraphic | ( | [in] ::com::sun::star::beans::PropertyValues | MediaProperties | ) | ||
raises | ( | ::com::sun::star::io::IOException, | ||||
::com::sun::star::lang::IllegalArgumentException, | ||||||
::com::sun::star::lang::WrappedTargetException ) |
Calling this method returns a XGraphic interface that holds the graphic content after loading the graphic.
MediaProperties | A sequence of property values to describe the location of the graphic from which the graphic is to be loaded |
::com::sun::star::beans::XPropertySet queryGraphicDescriptor | ( | [in] ::com::sun::star::beans::PropertyValues | MediaProperties | ) | ||
raises | ( | ::com::sun::star::io::IOException, | ||||
::com::sun::star::lang::IllegalArgumentException, | ||||||
::com::sun::star::lang::WrappedTargetException ) |
Calling this method returns a com::sun::star::beans::XPropertySet interface that gives access to the properties of the unloaded graphic.
In most cases, this method will be used to query the mime type of the graphic and, in the case of pixel graphics, the resulting size after loading
MediaProperties | A sequence of property values to describe the location of the graphic, for which the attributes should be returned |
void storeGraphic | ( | [in] ::com::sun::star::graphic::XGraphic | Graphic, | |||
[in] ::com::sun::star::beans::PropertyValues | MediaProperties ) | |||||
raises | ( | ::com::sun::star::io::IOException, | ||||
::com::sun::star::lang::IllegalArgumentException, | ||||||
::com::sun::star::lang::WrappedTargetException ) |
Store the graphic content, represented through the XGraphic interface at the specified location.
Graphic | The graphic that should be stored |
MediaProperties | A sequence of property values to describe the destination location of the graphic |