tdf#94288: Show chart props sidebar on activation

Change-Id: I2119b59e3b4e36a34c9925cb624558d2da49ecc7
Reviewed-on: https://gerrit.libreoffice.org/83715
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
This commit is contained in:
Muhammet Kara
2019-11-25 21:55:31 +03:00
parent 9b6b134b3e
commit 2d01ed9e8b

View File

@@ -163,11 +163,29 @@ void SAL_CALL ContextChangeEventMultiplexer::addContextChangeEventListener (
// the current context.
if (rxEventFocus.is() && pFocusDescriptor!=nullptr)
{
if (pFocusDescriptor->msCurrentApplicationName.isEmpty() && pFocusDescriptor->msCurrentContextName.isEmpty()
&& rxEventFocus.is())
{
Reference< lang::XServiceInfo > xServInfo( rxEventFocus, uno::UNO_QUERY_THROW );
if( xServInfo.is() && xServInfo->getImplementationName() == "com.sun.star.comp.chart2.ChartController")
{
css::ui::ContextChangeEventObject aEvent (
rxEventFocus,
"com.sun.star.chart2.ChartDocument",
"Chart");
rxListener->notifyContextChangeEvent(aEvent);
return;
}
}
css::ui::ContextChangeEventObject aEvent (
nullptr,
pFocusDescriptor->msCurrentApplicationName,
pFocusDescriptor->msCurrentContextName);
nullptr,
pFocusDescriptor->msCurrentApplicationName,
pFocusDescriptor->msCurrentContextName);
rxListener->notifyContextChangeEvent(aEvent);
}
}