diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2014-07-26 17:31:20 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-07-26 21:41:40 +0000 |
commit | 3f8e114bae8bb3ef45a08ced3434e7a9669ed4f9 (patch) | |
tree | cb409b5733de81eda5f52fe61431c5fe6a324eda | |
parent | 5b40565e6a47b8f3a655d1c10adc61b71de29d6b (diff) |
fdo#71770 Fixed Cut/Copy/Paste popup menu items to appear at the top
Change-Id: I14b3ad87536b2cf7e2e21ba00cb2afa18c2c95a3
Reviewed-on: https://gerrit.libreoffice.org/10564
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index b2cbdceb4648..6f2f5db14952 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -298,13 +298,13 @@ SfxPopupMenuManager* SfxPopupMenuManager::Popup( const ResId& rResId, SfxViewFra { PopupMenu aPop( SfxResId( MN_CLIPBOARDFUNCS ) ); nCount = aPop.GetItemCount(); - pSVMenu->InsertSeparator(); for ( n=0; n<nCount; n++ ) { sal_uInt16 nId = aPop.GetItemId( n ); - pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ) ); + pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ), OString(), n ); pSVMenu->SetHelpId( nId, aPop.GetHelpId( nId )); } + pSVMenu->InsertSeparator( OString(), n ); } InsertVerbs_Impl( &pFrame->GetBindings(), pFrame->GetViewShell()->GetVerbs(), pSVMenu ); @@ -348,13 +348,13 @@ void SfxPopupMenuManager::ExecutePopup( const ResId& rResId, SfxViewFrame* pFram { PopupMenu aPop( SfxResId( MN_CLIPBOARDFUNCS ) ); nCount = aPop.GetItemCount(); - pSVMenu->InsertSeparator(); for ( n=0; n<nCount; n++ ) { sal_uInt16 nId = aPop.GetItemId( n ); - pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ) ); + pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ), OString(), n ); pSVMenu->SetHelpId( nId, aPop.GetHelpId( nId )); } + pSVMenu->InsertSeparator( OString(), n ); } InsertVerbs_Impl( &pFrame->GetBindings(), pFrame->GetViewShell()->GetVerbs(), pSVMenu ); |