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:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user