summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-15 21:13:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-15 21:25:00 +0100
commitc5977a89c28b285dfface71ca71e07bb0463ed19 (patch)
treea196b98a2e6d0a2b3699918d9fe8a5935a163833
parent7b768dd9a78d2a979eb4d1b1b5b33a4f01a1a98a (diff)
Resolves: tdf#96451 do magic to enable embedded chart sidebar only for chart
objects, and do the normal thing for other objects, e.g. math Change-Id: Ifb786a841b843b0317713769cb214a44dceaf546
-rw-r--r--embeddedobj/source/general/docholder.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx
index dabebe88cef3..b13fbbc51058 100644
--- a/embeddedobj/source/general/docholder.cxx
+++ b/embeddedobj/source/general/docholder.cxx
@@ -709,10 +709,17 @@ bool DocumentHolder::ShowUI( const uno::Reference< css::frame::XLayoutManager >&
// this must be done after merging menus as we won't get the container menu otherwise
xContainerLM->setDockingAreaAcceptor( uno::Reference < ui::XDockingAreaAcceptor >() );
+ bool bIsChart = false;
+ uno::Reference< lang::XServiceInfo> xServiceInfo(m_xComponent, uno::UNO_QUERY);
+ if (xServiceInfo.is() && xServiceInfo->supportsService("com.sun.star.chart2.ChartDocument"))
+ bIsChart = true;
// prevent further changes at this LM
// TODO: moggi: why is this necessary?
- // xContainerLM->setVisible( sal_False );
- // xContainerLM->lock();
+ if (!bIsChart)
+ {
+ xContainerLM->setVisible( sal_False );
+ xContainerLM->lock();
+ }
bUnlock = true;
// by unlocking the LM each layout change will now resize the containers window; pending layouts will be processed now