diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-23 17:46:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:03 +0200 |
commit | 10362695c2060f6aa48bd88f6b8dd6cfa556392a (patch) | |
tree | 47934dee52011b102f3dec35eda5888240920e68 /sd/source | |
parent | a297372210396260da57f34da3790f76682603cc (diff) |
fdo#46808, Adapt ModuleUIConfigurationManagerSupplier UNO service to new style
Change-Id: I58b17349474b974edd24aa17ec08ffa848a92ae9
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 53c9bbc1812e..75f1217c00a0 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -61,7 +61,7 @@ #include <com/sun/star/frame/XModuleManager.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp> #include <com/sun/star/ucb/XSimpleFileAccess2.hpp> -#include <com/sun/star/ui/XModuleUIConfigurationManagerSupplier.hpp> +#include <com/sun/star/ui/ModuleUIConfigurationManagerSupplier.hpp> #include <com/sun/star/ui/XImageManager.hpp> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> #include <unotools/historyoptions.hxx> @@ -1811,16 +1811,15 @@ Image AssistentDlgImpl::GetUiIconForCommand (const ::rtl::OUString& sCommandURL) break; // Retrieve popup menu labels - Reference<lang::XMultiServiceFactory> xFactory ( - ::comphelper::getProcessServiceFactory ()); - if ( ! xFactory.is()) + Reference<uno::XComponentContext> xContext ( + ::comphelper::getProcessComponentContext()); + if ( ! xContext.is()) break; ::rtl::OUString sModuleIdentifier ("com.sun.star.presentation.PresentationDocument"); - Reference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier> xSupplier ( - xFactory->createInstance("com.sun.star.ui.ModuleUIConfigurationManagerSupplier"), - UNO_QUERY_THROW); + Reference<ui::XModuleUIConfigurationManagerSupplier> xSupplier ( + ui::ModuleUIConfigurationManagerSupplier::create(xContext)); Reference<com::sun::star::ui::XUIConfigurationManager> xManager ( xSupplier->getUIConfigurationManager(sModuleIdentifier)); |