Container of resource factories of the drawing framework.
More...
#include <ResourceFactoryManager.hxx>
|
typedef std::unordered_map< OUString, css::uno::Reference< css::drawing::framework::XResourceFactory > > | FactoryMap |
|
typedef ::std::vector< ::std::pair< OUString, css::uno::Reference< css::drawing::framework::XResourceFactory > > > | FactoryPatternList |
|
|
css::uno::Reference< css::drawing::framework::XResourceFactory > | FindFactory (const OUString &rsURLBase) |
| Look up the factory for the given URL. More...
|
|
Container of resource factories of the drawing framework.
Definition at line 42 of file ResourceFactoryManager.hxx.
◆ FactoryMap
◆ FactoryPatternList
◆ ResourceFactoryManager()
◆ ~ResourceFactoryManager()
sd::framework::ResourceFactoryManager::~ResourceFactoryManager |
( |
| ) |
|
◆ AddFactory()
void sd::framework::ResourceFactoryManager::AddFactory |
( |
const OUString & |
rsURL, |
|
|
const css::uno::Reference< css::drawing::framework::XResourceFactory > & |
rxFactory |
|
) |
| |
Register a resource factory for one type of resource.
- Parameters
-
rsURL | The type of the resource that will be created by the factory. |
rxFactory | The factory that will create resource objects of the specified type. |
- Exceptions
-
css::uno::RuntimeException | |
Definition at line 64 of file ResourceFactoryManager.cxx.
References maFactoryMap, maFactoryPatternList, maMutex, and SAL_INFO.
◆ FindFactory()
Reference< XResourceFactory > sd::framework::ResourceFactoryManager::FindFactory |
( |
const OUString & |
rsURLBase | ) |
|
|
private |
◆ GetFactory()
Reference< XResourceFactory > sd::framework::ResourceFactoryManager::GetFactory |
( |
const OUString & |
rsURL | ) |
|
Return a factory that can create resources specified by the given URL.
- Parameters
-
rsCompleteURL | This URL specifies the type of the resource. It may contain arguments. |
- Returns
- When a factory for the specified URL has been registered by a previous call to AddFactory() then a reference to that factory is returned. Otherwise an empty reference is returned.
- Exceptions
-
css::uno::RuntimeException | |
Definition at line 145 of file ResourceFactoryManager.cxx.
References aURL, FindFactory(), mxControllerManager, mxURLTransformer, and xFactory.
◆ RemoveFactoryForReference()
void sd::framework::ResourceFactoryManager::RemoveFactoryForReference |
( |
const css::uno::Reference< css::drawing::framework::XResourceFactory > & |
rxFactory | ) |
|
◆ RemoveFactoryForURL()
void sd::framework::ResourceFactoryManager::RemoveFactoryForURL |
( |
const OUString & |
rsURL | ) |
|
◆ maFactoryMap
FactoryMap sd::framework::ResourceFactoryManager::maFactoryMap |
|
private |
◆ maFactoryPatternList
◆ maMutex
std::mutex sd::framework::ResourceFactoryManager::maMutex |
|
private |
◆ mxControllerManager
◆ mxURLTransformer
css::uno::Reference<css::util::XURLTransformer> sd::framework::ResourceFactoryManager::mxURLTransformer |
|
private |
The documentation for this class was generated from the following files: