diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-13 15:09:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-14 08:08:26 +0200 |
commit | 0394cb37a2d378511f265004b285fd93df37e5ca (patch) | |
tree | f3a7269690e6fbd34b7ef09ff9e874b6f15345ba /cui | |
parent | 4481f5d4bcf0ba5b5d02c1dbff6d24d1e5301ff6 (diff) |
fdo#46808, Convert ui::ImageManager to new style
The service already existed, it just needed an IDL file.
Change-Id: I5bdc3064b0a3caa5a0d2abf4ef5ba3159889c7af
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
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 <com/sun/star/graphic/GraphicProvider.hpp> #include <com/sun/star/ui/ItemType.hpp> #include <com/sun/star/ui/ItemStyle.hpp> +#include <com/sun/star/ui/ImageManager.hpp> #include <com/sun/star/ui/ModuleUIConfigurationManagerSupplier.hpp> #include <com/sun/star/ui/XUIConfiguration.hpp> #include <com/sun/star/ui/XUIConfigurationListener.hpp> @@ -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; |