From 0394cb37a2d378511f265004b285fd93df37e5ca Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 May 2013 15:09:45 +0200 Subject: fdo#46808, Convert ui::ImageManager to new style The service already existed, it just needed an IDL file. Change-Id: I5bdc3064b0a3caa5a0d2abf4ef5ba3159889c7af --- cui/source/customize/cfg.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cui/source') diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 4aad676607b5..5566dcea43de 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -75,6 +75,7 @@ #include #include #include +#include #include #include #include @@ -5006,8 +5007,6 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( Window *pWindow, aFtNote.SetText( replaceSixteen( aFtNote.GetText(), m_nExpectedSize ) ); } - uno::Reference< lang::XMultiServiceFactory > xServiceManager = - ::comphelper::getProcessServiceFactory(); uno::Reference< uno::XComponentContext > xComponentContext = ::comphelper::getProcessComponentContext(); @@ -5058,10 +5057,7 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( Window *pWindow, aPropValue.Value <<= com::sun::star::embed::ElementModes::READWRITE; aProp[ 1 ] <<= aPropValue; - m_xImportedImageManager = uno::Reference< com::sun::star::ui::XImageManager >( - xServiceManager->createInstanceWithArguments( - OUString("com.sun.star.ui.ImageManager" ), aProp ), - uno::UNO_QUERY ); + m_xImportedImageManager = css::ui::ImageManager::create( xComponentContext ); ImageInfo mImageInfo; uno::Sequence< OUString > names; -- cgit v1.2.3