provides functions to add and remove listeners for changes within an
image manager.
An image manager implementation notifies its listener whenever an image
set has been changed, due to insert, remove or replace operations. To
minimize the overhead for notifications an image manager places all
inserted and/or replaced images into a single notify call. A container
which implements ::com::sun::star::container::XNameAccess
holds the information. The access key is a command URL and provides a
::com::sun::star::graphic::XGraphic. This container
is placed into the
ConfigurationEvent::Element.
The image set which has been changed is put into the
ConfigurationEvent::aInfo.
initializes an image manager instance.
An image manager instance must be initialized using
::XInitialization::initialize
before it can be used.
The following property must be provided if the image manager is
related to a module:
ModuleIdentifierspecifies a string property which is the
unique identifier of module.
UserConfigStoragespecifies a
::com::sun::star::embed::XStorage property which
provides access to the configuration storage of the module.
UserRootCommitspecifies an optional
::com::sun::star::embed::XTransactedObject
property which makes it possible to commit a root storage.
Description
specifies access functions to an images manager interface to add,
replace and remove images assocations to command URLs.
An image manager controls a number of image sets which are specified
by a ImageType.
specifies the image type for this association operation.
Parameter aCommandURLSequence
a sequence of command URLs for which the images are requested.
Returns
a sequence of graphics object which are associated with the
provided command URLs. If an unknown command URL is provided or
a command URL has no associated image a graphics object with an
empty image is provided. If the sequence
aCommandURLSequence contains an invalid command
URL a ::com::sun::star::lang::IllegalArgumentException
is thrown.
specifies the image type for this association operation.
Parameter aCommandURLSequence
a sequence of command URLs for which images should be replaced.
Parameter aGraphicsSequence
a sequence of graphic objects which should replace the old images
of the provided command URLs.
If a command URL cannot be found the replace call will be omitted. If
aCommandURLSequence contains an invalid command URL a
::com::sun::star::lang::IllegalArgumentException
is thrown. If the image manager is associated with a read-only configuration
manager a ::com::sun::star::lang::IllegalAccessException
is thrown.
specifies the image type for this association operation.
Parameter aCommandURLSequence
a sequence of command URLs for which the images should be removed.
If the aCommandURLSequence contains an invalid command URL a
::com::sun::star::lang::IllegalArgumentException is
thrown. If the image manager is associated with a read-only configuration
manager a ::com::sun::star::lang::IllegalAccessException
is thrown.
inserts new image/command associations to a image manager.
Parameter nImageType
specifies the image type for this association operation.
Parameter aCommandURLSequence
a sequence of command URLs which specify which commands get an new image.
Parameter aGraphicSequence
a sequence of graphic objects which should be associated with the provided
command URLs.
If an association is already present it is replaced. If
aCommandURLSequence contains an invalid command URL a
::com::sun::star::lang::IllegalArgumentException
is thrown. If the configuration manager is read-only a
::com::sun::star::lang::IllegalAccessException is
thrown.