Kaydet (Commit) 8ca76fc1 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#93837 Never hide clipboard functions in context menus

This updates the hack made for tdf#86850 for the new
implementation. We're going to use .uno command names,
instead of sfx2 SIDs.

While touching this, I removed the check for the Paste
Special menu. It's not backed by a real sfx2 slot, so
never disabled.

Change-Id: I1e2078e98987ad1f5f46e3964d878cb967ac00ef
üst 9e970338
......@@ -1346,7 +1346,8 @@ bool Menu::ImplIsVisible( sal_uInt16 nPos ) const
else if ( pData->eType != MenuItemType::SEPARATOR ) // separators handled above
{
// tdf#86850 Always display clipboard functions
if ( pData->nId == SID_CUT || pData->nId == SID_COPY || pData->nId == SID_PASTE || pData->nId == SID_MENU_PASTE_SPECIAL )
if ( pData->nId == SID_CUT || pData->nId == SID_COPY || pData->nId == SID_PASTE ||
pData->aCommandStr == ".uno:Cut" || pData->aCommandStr == ".uno:Copy" || pData->aCommandStr == ".uno:Paste" )
bVisible = true;
else
// bVisible = pData->bEnabled && ( !pData->pSubMenu || pData->pSubMenu->HasValidEntries( true ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment