diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-06 23:44:37 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-06 23:54:22 +0300 |
commit | ff085ed8fd6438d855526a8a4d699960e4d3cc73 (patch) | |
tree | 243e99db2a0c8c298461ac4bd89bd70a017fed73 /sd/source/ui/controller | |
parent | 44ba8c2b986bb94b8809885bdf7dc97ae7db7398 (diff) |
tdf#95845 Use CommandInfoProvider
Change-Id: Ief823dd19bc1c56a4acf380bfec8d35bdb20ad96
Diffstat (limited to 'sd/source/ui/controller')
-rw-r--r-- | sd/source/ui/controller/slidelayoutcontroller.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx index 6dd1079094b5..f034f43db690 100644 --- a/sd/source/ui/controller/slidelayoutcontroller.cxx +++ b/sd/source/ui/controller/slidelayoutcontroller.cxx @@ -26,6 +26,7 @@ #include <osl/mutex.hxx> +#include <vcl/commandinfoprovider.hxx> #include <vcl/svapp.hxx> #include <vcl/toolbox.hxx> @@ -39,8 +40,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <comphelper/processfactory.hxx> -#include <sfx2/imagemgr.hxx> - #include "app.hrc" #include "facreg.hxx" #include "glob.hrc" @@ -240,11 +239,11 @@ LayoutToolbarMenu::LayoutToolbarMenu( SlideLayoutController& rController, vcl::W sSlotStr = ".uno:DuplicatePage"; else sSlotStr = ".uno:Undo"; - aSlotImage = ::GetImage( xFrame, sSlotStr, false ); + aSlotImage = vcl::CommandInfoProvider::Instance().GetImageForCommand( sSlotStr, false, xFrame ); OUString sSlotTitle; if( bInsertPage ) - sSlotTitle = ImplRetrieveLabelFromCommand( xFrame, sSlotStr ); + sSlotTitle = vcl::CommandInfoProvider::Instance().GetLabelForCommand( sSlotStr, xFrame ); else sSlotTitle = SD_RESSTR( STR_RESET_LAYOUT ); appendEntry( 2, sSlotTitle, aSlotImage); |