diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2019-11-25 21:55:31 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2019-11-26 15:39:56 +0100 |
commit | 2d01ed9e8be543460e41e009fa992103a7c8d4c0 (patch) | |
tree | bd75130e564374647046f03ad4a334c1876d9dd0 /framework/source/services | |
parent | 9b6b134b3e605236e90aca089867f08d659a6076 (diff) |
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>
Diffstat (limited to 'framework/source/services')
-rw-r--r-- | framework/source/services/ContextChangeEventMultiplexer.cxx | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/framework/source/services/ContextChangeEventMultiplexer.cxx b/framework/source/services/ContextChangeEventMultiplexer.cxx index b64a4e131717..c6da6be6b0d1 100644 --- a/framework/source/services/ContextChangeEventMultiplexer.cxx +++ b/framework/source/services/ContextChangeEventMultiplexer.cxx @@ -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); + } } |