fdo#63378 Enable Impress Remote Dialog menu item for all view shells.

Change-Id: I47f040c1463b4be648d411c2f7f0070b8aed3e9c
This commit is contained in:
Andrzej Hunt 2014-06-27 18:20:14 +02:00
parent eba630ca16
commit d61468314b
2 changed files with 24 additions and 0 deletions

View File

@ -276,6 +276,19 @@ void SlotManager::FuTemporary (SfxRequest& rRequest)
}
break;
case SID_REMOTE_DLG:
{
#ifdef ENABLE_SDREMOTE
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
VclAbstractDialog* pDlg = pFact ?
pFact->CreateRemoteDialog( mrSlideSorter.GetContentWindow().get() ) :
0;
if (pDlg)
pDlg->Execute();
#endif
}
break;
default:
break;
}

View File

@ -285,6 +285,17 @@ void OutlineViewShell::FuTemporary(SfxRequest &rReq)
}
break;
case SID_REMOTE_DLG:
{
#ifdef ENABLE_SDREMOTE
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
VclAbstractDialog* pDlg = pFact ? pFact->CreateRemoteDialog(GetActiveWindow()) : 0;
if (pDlg)
pDlg->Execute();
#endif
}
break;
case SID_CUSTOMSHOW_DLG:
{
SetCurrentFunction( FuCustomShowDlg::Create( this, GetActiveWindow(), pOlView, GetDoc(), rReq ) );