diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/pch/precompiled_sd.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/view/outlview.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/view/viewoverlaymanager.cxx | 1 | ||||
-rw-r--r-- | sd/uiconfig/simpress/ui/annotationmenu.ui | 10 |
6 files changed, 19 insertions, 17 deletions
diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx index 72edaa133137..27993c6c65be 100644 --- a/sd/inc/pch/precompiled_sd.hxx +++ b/sd/inc/pch/precompiled_sd.hxx @@ -346,7 +346,6 @@ #include <sfx2/docfilt.hxx> #include <sfx2/fcontnr.hxx> #include <sfx2/frame.hxx> -#include <sfx2/imagemgr.hxx> #include <sfx2/ipclient.hxx> #include <sfx2/linkmgr.hxx> #include <sfx2/msg.hxx> diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index b2680c08bf11..b5802d726994 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -32,6 +32,7 @@ #include <comphelper/string.hxx> #include <svx/svxids.hrc> +#include <vcl/commandinfoprovider.hxx> #include <vcl/settings.hxx> #include <vcl/menu.hxx> #include <vcl/msgbox.hxx> @@ -46,7 +47,6 @@ #include <tools/datetime.hxx> -#include <sfx2/imagemgr.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/bindings.hxx> #include <sfx2/app.hxx> @@ -1206,12 +1206,8 @@ void AnnotationManagerImpl::ExecuteAnnotationContextMenu( const Reference< XAnno sal_uInt16 nId = pMenu->GetItemId( nPos ); if (!pMenu->IsItemEnabled(nId)) continue; - OString sIdent = pMenu->GetItemIdent(nId); - sal_uInt16 nSID = IdentToSID(sIdent); - OUString sSlotURL( "slot:" ); - sSlotURL += OUString::number(nSID); - Image aImage( GetImage( xFrame, sSlotURL, false ) ); + Image aImage( vcl::CommandInfoProvider::GetImageForCommand( pMenu->GetItemCommand( nId ), xFrame ) ); if( !!aImage ) pMenu->SetItemImage( nId, aImage ); } diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 521e18f86ce3..888e49fdd367 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -40,7 +40,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <sfx2/infobar.hxx> -#include <sfx2/imagemgr.hxx> #include <sfx2/request.hxx> #include <sfx2/docfile.hxx> #include <sfx2/app.hxx> @@ -65,6 +64,7 @@ #include "res_bmp.hrc" #include "sdresid.hxx" #include <vcl/canvastools.hxx> +#include <vcl/commandinfoprovider.hxx> #include <vcl/settings.hxx> #include "comphelper/anytostring.hxx" @@ -2004,13 +2004,13 @@ IMPL_LINK_NOARG(SlideshowImpl, ContextMenuHdl, void*, void) Reference< css::frame::XFrame > xFrame( pViewFrame->GetFrame().GetFrameInterface() ); if( xFrame.is() ) { - pMenu->SetItemImage(pMenu->GetItemId("next"), GetImage(xFrame, "slot:10617" , false)); - pMenu->SetItemImage(pMenu->GetItemId("prev"), GetImage(xFrame, "slot:10618" , false)); + pMenu->SetItemImage(pMenu->GetItemId("next"), vcl::CommandInfoProvider::GetImageForCommand(".uno:NextRecord", xFrame)); + pMenu->SetItemImage(pMenu->GetItemId("prev"), vcl::CommandInfoProvider::GetImageForCommand(".uno:PrevRecord", xFrame)); if( pPageMenu ) { - pPageMenu->SetItemImage(pPageMenu->GetItemId("first"), GetImage(xFrame, "slot:10616" , false)); - pPageMenu->SetItemImage(pPageMenu->GetItemId("last"), GetImage(xFrame, "slot:10619" , false)); + pPageMenu->SetItemImage(pPageMenu->GetItemId("first"), vcl::CommandInfoProvider::GetImageForCommand(".uno:FirstRecord", xFrame)); + pPageMenu->SetItemImage(pPageMenu->GetItemId("last"), vcl::CommandInfoProvider::GetImageForCommand(".uno:LastRecord", xFrame)); } } } diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index f0cbddc14394..5821dde1d610 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -20,6 +20,7 @@ #include "OutlineView.hxx" #include <editeng/forbiddencharacterstable.hxx> #include <sfx2/progress.hxx> +#include <vcl/commandinfoprovider.hxx> #include <vcl/wrkwin.hxx> #include <svx/svxids.hrc> #include <editeng/outliner.hxx> @@ -28,7 +29,6 @@ #include <editeng/lrspitem.hxx> #include <svx/svdotext.hxx> #include <sfx2/printer.hxx> -#include <sfx2/imagemgr.hxx> #include <sfx2/app.hxx> #include <sfx2/bindings.hxx> #include <svl/itempool.hxx> @@ -146,9 +146,7 @@ OutlineView::OutlineView( DrawDocShell& rDocSh, vcl::Window* pWindow, OutlineVie maBulletFont.SetShadow(false); Reference<XFrame> xFrame (mrOutlineViewShell.GetViewShellBase().GetFrame()->GetFrame().GetFrameInterface(), UNO_QUERY); - - const OUString aSlotURL( ".uno:ShowSlide" ); - maSlideImage = GetImage( xFrame, aSlotURL, true ); + maSlideImage = vcl::CommandInfoProvider::GetImageForCommand(".uno:ShowSlide", xFrame, vcl::ImageType::Size26); // Tell undo manager of the document about the undo manager of the // outliner, so that the former can synchronize with the later. diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index 44aa1f59e3d0..19254e201c9c 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -20,7 +20,6 @@ #include "sddll.hxx" #include <com/sun/star/frame/XFrame.hpp> -#include <sfx2/imagemgr.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/bindings.hxx> #include <sfx2/app.hxx> diff --git a/sd/uiconfig/simpress/ui/annotationmenu.ui b/sd/uiconfig/simpress/ui/annotationmenu.ui index b5bf418e9784..0e8ba5f39645 100644 --- a/sd/uiconfig/simpress/ui/annotationmenu.ui +++ b/sd/uiconfig/simpress/ui/annotationmenu.ui @@ -9,6 +9,7 @@ <object class="GtkMenuItem" id="reply"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:ReplyToAnnotation</property> <property name="label" translatable="yes">_Reply</property> <property name="use_underline">True</property> </object> @@ -23,6 +24,7 @@ <object class="GtkCheckMenuItem" id="bold"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Bold</property> <property name="label" translatable="yes">_Bold</property> <property name="use_underline">True</property> </object> @@ -31,6 +33,7 @@ <object class="GtkCheckMenuItem" id="italic"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Italic</property> <property name="label" translatable="yes">_Italic</property> <property name="use_underline">True</property> </object> @@ -39,6 +42,7 @@ <object class="GtkCheckMenuItem" id="underline"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Underline</property> <property name="label" translatable="yes">_Underline</property> <property name="use_underline">True</property> </object> @@ -47,6 +51,7 @@ <object class="GtkCheckMenuItem" id="strike"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Strikeout</property> <property name="label" translatable="yes">_Strikethrough</property> <property name="use_underline">True</property> </object> @@ -61,6 +66,7 @@ <object class="GtkMenuItem" id="copy"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Copy</property> <property name="label" translatable="yes">_Copy</property> <property name="use_underline">True</property> </object> @@ -69,6 +75,7 @@ <object class="GtkMenuItem" id="paste"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:Paste</property> <property name="label" translatable="yes">_Paste</property> <property name="use_underline">True</property> </object> @@ -83,6 +90,7 @@ <object class="GtkMenuItem" id="delete"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:DeleteAnnotation</property> <property name="label" translatable="yes">_Delete Comment</property> <property name="use_underline">True</property> </object> @@ -91,6 +99,7 @@ <object class="GtkMenuItem" id="deleteby"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:DeleteAllAnnotationByAuthor</property> <property name="label" translatable="yes">Delete All Comments b_y %1</property> <property name="use_underline">True</property> </object> @@ -99,6 +108,7 @@ <object class="GtkMenuItem" id="deleteall"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="action_name">.uno:DeleteAllAnnotation</property> <property name="label" translatable="yes">Delete _All Comments</property> <property name="use_underline">True</property> </object> |