25#include <unordered_map>
29#include <com/sun/star/uno/Reference.hxx>
31#include <rtl/ustring.hxx>
36namespace sd {
class DrawController; }
57 const OUString& rsURL,
58 const css::uno::Reference<css::drawing::framework::XResourceFactory>& rxFactory);
67 const OUString& rsURL);
76 const css::uno::Reference<css::drawing::framework::XResourceFactory>& rxFactory);
87 css::uno::Reference<css::drawing::framework::XResourceFactory>
GetFactory (
88 const OUString& rsURL);
92 typedef std::unordered_map<
94 css::uno::Reference<css::drawing::framework::XResourceFactory> >
FactoryMap;
97 typedef ::std::vector<
100 css::uno::Reference<css::drawing::framework::XResourceFactory> > >
115 css::uno::Reference<css::drawing::framework::XResourceFactory>
FindFactory (
116 const OUString& rsURLBase);
Container of resource factories of the drawing framework.
rtl::Reference<::sd::DrawController > mxControllerManager
void RemoveFactoryForReference(const css::uno::Reference< css::drawing::framework::XResourceFactory > &rxFactory)
Unregister the specified factory.
css::uno::Reference< css::drawing::framework::XResourceFactory > FindFactory(const OUString &rsURLBase)
Look up the factory for the given URL.
std::unordered_map< OUString, css::uno::Reference< css::drawing::framework::XResourceFactory > > FactoryMap
css::uno::Reference< css::util::XURLTransformer > mxURLTransformer
~ResourceFactoryManager()
void AddFactory(const OUString &rsURL, const css::uno::Reference< css::drawing::framework::XResourceFactory > &rxFactory)
Register a resource factory for one type of resource.
ResourceFactoryManager(const rtl::Reference<::sd::DrawController > &rxManager)
::std::vector< ::std::pair< OUString, css::uno::Reference< css::drawing::framework::XResourceFactory > > > FactoryPatternList
css::uno::Reference< css::drawing::framework::XResourceFactory > GetFactory(const OUString &rsURL)
Return a factory that can create resources specified by the given URL.
FactoryPatternList maFactoryPatternList
void RemoveFactoryForURL(const OUString &rsURL)
Unregister the specified factory.