sync cell context menu & edit menu 'PasteSpecial' entries for calc fdo#46250
calc application specifically handles PasteSpecial so no need to set the state of the menu entry to enabled always ( for calc at least ) Change-Id: Iaf13dd825f0cbdcf9f455db07d727753fae90868
This commit is contained in:
@@ -505,7 +505,9 @@ throw ( RuntimeException )
|
|||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
//enable some slots hardly, because UNIX clipboard does not notify all changes
|
//enable some slots hardly, because UNIX clipboard does not notify all changes
|
||||||
// Can be removed if follow up task will be fixed directly within applications.
|
// Can be removed if follow up task will be fixed directly within applications.
|
||||||
if ( pMenuItemHandler->aMenuItemURL == ".uno:Paste" || pMenuItemHandler->aMenuItemURL == ".uno:PasteSpecial"
|
// Note: PasteSpecial is handled specifically by calc
|
||||||
|
if ( pMenuItemHandler->aMenuItemURL == ".uno:Paste" ||
|
||||||
|
( m_aModuleIdentifier != "com.sun.star.sheet.SpreadsheetDocument" && pMenuItemHandler->aMenuItemURL == ".uno:PasteSpecial" )
|
||||||
|| pMenuItemHandler->aMenuItemURL == ".uno:PasteClipboard" ) // special for draw/impress
|
|| pMenuItemHandler->aMenuItemURL == ".uno:PasteClipboard" ) // special for draw/impress
|
||||||
bEnabledItem = sal_True;
|
bEnabledItem = sal_True;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user