summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-06-03 12:14:52 +0300
committerTor Lillqvist <tml@collabora.com>2015-06-03 13:54:57 +0300
commitd62bf7e0a49dca2b05b3c25aa63a2087a490dcc3 (patch)
treeb934aae63610d611e1d361e65e71fadb6fd09f7a /sfx2
parent561fd3a1156623f84ae48462b1e508909f254e9e (diff)
Avoid various desktop GUI elements when used from LibreOfficeKit
Change-Id: Id283d185ab38427ce6887ead4e414055522e655c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/dispatch.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 5e6f9bc2898c..0b9555aafb1b 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/frame/XDispatchRecorderSupplier.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
+#include <comphelper/lok.hxx>
#include <rtl/strbuf.hxx>
#include <sfx2/app.hxx>
#include <sfx2/bindings.hxx>
@@ -1168,7 +1169,7 @@ void SfxDispatcher::Update_Impl( bool bForce )
return;
SfxViewFrame* pTop = xImp->pFrame ? xImp->pFrame->GetTopViewFrame() : NULL;
- bool bUIActive = pTop && pTop->GetBindings().GetDispatcher() == this;
+ bool bUIActive = pTop && pTop->GetBindings().GetDispatcher() == this && !comphelper::LibreOfficeKit::isActive();
if ( !bUIActive && pTop && GetBindings() == &pTop->GetBindings() )
// keep own tools internally for collecting
@@ -1232,7 +1233,7 @@ void SfxDispatcher::Update_Impl( bool bForce )
}
_Update_Impl( bUIActive, !bIsIPActive, bIsIPActive, pTaskWin );
- if ( bUIActive || bIsActive )
+ if ( (bUIActive || bIsActive) && !comphelper::LibreOfficeKit::isActive() )
pWorkWin->UpdateObjectBars_Impl();
if ( pBindings )