[Libreoffice-commits] core.git: framework/source
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Nov 26 14:41:56 UTC 2019
framework/source/services/ContextChangeEventMultiplexer.cxx | 24 ++++++++++--
1 file changed, 21 insertions(+), 3 deletions(-)
New commits:
commit 2d01ed9e8be543460e41e009fa992103a7c8d4c0
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Mon Nov 25 21:55:31 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Tue Nov 26 15:39:56 2019 +0100
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 at collabora.com>
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);
+
}
}
More information about the Libreoffice-commits
mailing list