Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: drawing :: framework ::

interface XResourceFactoryManager
Description
The XResourceFactoryManager is part of the configuration controller and manages the set of registered resource factories.
See also
XConfigurationController, XResourceFactory

Methods' Summary
addResourceFactory Register a new resource factory for the given URL.  
removeResourceFactoryForURL Remove a resource factory for one type of resource. When the factory has been registered for other URLs as well then it remains registered for them. Use the removeResourceFactoryForReference() to remove a factory completely.  
removeResourceFactoryForReference Remove a resource factory for all resource types it has been registered for. Use removeResourceFactoryForURL to remove a factory just for one resource type and to leave it registered for others.  
getResourceFactory Return the resource factory that was previously registered for the given resource type. This method is typically called by one of the resource controllers.  
Methods' Details
addResourceFactory
void
addResourceFactory( [in] string  sResourceURL,
[in] XResourceFactory  xResourceFactory );

Description
Register a new resource factory for the given URL.

When one factory is responsible for more than one type of resource then this method has to be called for each type. If this method is called multiple times for the same URL then a previously registered factory is removed for the URL.

Parameter sResourceURL
The URL of the resource that the factory can create.
Parameter xResourceFactory
The resource factory object.
removeResourceFactoryForURL
void
removeResourceFactoryForURL( [in] string  sResourceURL );

Description
Remove a resource factory for one type of resource. When the factory has been registered for other URLs as well then it remains registered for them. Use the removeResourceFactoryForReference() to remove a factory completely.
Parameter sResourceURL
The URL for which to remove the resource factory.
removeResourceFactoryForReference
void
removeResourceFactoryForReference( [in] XResourceFactory  xResourceFactory );

Description
Remove a resource factory for all resource types it has been registered for. Use removeResourceFactoryForURL to remove a factory just for one resource type and to leave it registered for others.
Parameter xResourceFactory
The resource factory object to remove.
getResourceFactory
XResourceFactory
getResourceFactory( [in] string  sResourceURL );

Description
Return the resource factory that was previously registered for the given resource type. This method is typically called by one of the resource controllers.
Parameter sResourceURL
The URL of the resource type for which to return the resource factory.
Returns
When no resource factory was registered for the given resource type then an empty reference is returned.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.