(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: graphic ::

interface XGraphicProvider
Description
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

Methods' Summary
queryGraphicDescriptor Calling this method returns a ::com::sun::star::beans::XPropertySet interface that gives access to the properties of the unloaded graphic  
queryGraphic Calling this method returns a XGraphic interface that holds the graphic content after loading the graphic  
storeGraphic Store the graphic content, represented through the XGraphic interface at the specified location  
Methods' Details
queryGraphicDescriptor
::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 );

Description
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

Parameter MediaProperties
A sequence of property values to describe the location of the graphic, for which the attributes should be returned
Returns
A ::com::sun::star::beans::XPropertySet interface to get access to the different graphic properties
See also
MediaProperties, GraphicDescriptor, ::com::sun::star::beans::PropertyValues
queryGraphic
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 );

Description
Calling this method returns a XGraphic interface that holds the graphic content after loading the graphic
Parameter MediaProperties
A sequence of property values to describe the location of the graphic from which the graphic is to be loaded
Returns
The XGraphic interface
See also
MediaProperties, XGraphic, ::com::sun::star::beans::PropertyValues
storeGraphic
void
storeGraphic( [in] 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 );

Description
Store the graphic content, represented through the XGraphic interface at the specified location
Parameter Graphic
The graphic that should be stored
Parameter MediaProperties
A sequence of property values to describe the destination location of the graphic
See also
XGraphic, MediaProperties, ::com::sun::star::beans::PropertyValues
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.