summaryrefslogtreecommitdiff
path: root/sd/source/ui/controller
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-10-06 23:44:37 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-10-06 23:54:22 +0300
commitff085ed8fd6438d855526a8a4d699960e4d3cc73 (patch)
tree243e99db2a0c8c298461ac4bd89bd70a017fed73 /sd/source/ui/controller
parent44ba8c2b986bb94b8809885bdf7dc97ae7db7398 (diff)
tdf#95845 Use CommandInfoProvider
Change-Id: Ief823dd19bc1c56a4acf380bfec8d35bdb20ad96
Diffstat (limited to 'sd/source/ui/controller')
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx7
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);