summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/module/ModuleController.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/ModuleController.cxx')
-rw-r--r--sd/source/ui/framework/module/ModuleController.cxx35
1 files changed, 17 insertions, 18 deletions
diff --git a/sd/source/ui/framework/module/ModuleController.cxx b/sd/source/ui/framework/module/ModuleController.cxx
index c8c520aa764e..6a01191c6d68 100644
--- a/sd/source/ui/framework/module/ModuleController.cxx
+++ b/sd/source/ui/framework/module/ModuleController.cxx
@@ -71,24 +71,11 @@ ModuleController::ModuleController (const Reference<XComponentContext>& rxContex
mpResourceToFactoryMap(new ResourceToFactoryMap()),
mpLoadedFactories(new LoadedFactoryContainer())
{
- (void)rxContext;
- LoadFactories(rxContext);
-}
-
-ModuleController::~ModuleController() throw()
-{
-}
-
-void SAL_CALL ModuleController::disposing()
-{
- // Break the cyclic reference back to DrawController object
- mpLoadedFactories.reset();
- mpResourceToFactoryMap.reset();
- mxController.clear();
-}
-
-void ModuleController::LoadFactories (const Reference<XComponentContext>& rxContext)
-{
+ /** Load a list of URL to service mappings from the
+ /org.openoffice.Office.Impress/MultiPaneGUI/Framework/ResourceFactories
+ configuration entry. The mappings are stored in the
+ mpResourceToFactoryMap member.
+ */
try
{
ConfigurationAccess aConfiguration (
@@ -114,6 +101,18 @@ void ModuleController::LoadFactories (const Reference<XComponentContext>& rxCont
}
}
+ModuleController::~ModuleController() throw()
+{
+}
+
+void SAL_CALL ModuleController::disposing()
+{
+ // Break the cyclic reference back to DrawController object
+ mpLoadedFactories.reset();
+ mpResourceToFactoryMap.reset();
+ mxController.clear();
+}
+
void ModuleController::ProcessFactory (const ::std::vector<Any>& rValues)
{
OSL_ASSERT(rValues.size() == snFactoryPropertyCount);