summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-06-03 10:19:28 +0200
committerTor Lillqvist <tml@collabora.com>2015-06-03 13:54:56 +0300
commit561fd3a1156623f84ae48462b1e508909f254e9e (patch)
treed4b38080781c9a9438aaaa6c4da40f360c78bcf4
parent45d26bfe091e00a1a897c6944dbeb2be9b6a5c92 (diff)
lok: Avoid instantiation of the slide sorter bar
Change-Id: Ia21bea54d1d6bd34256cb45ed704c6f7785fc2fc
-rw-r--r--svtools/source/config/slidesorterbaropt.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx
index dd62de329771..9c729c089c96 100644
--- a/svtools/source/config/slidesorterbaropt.cxx
+++ b/svtools/source/config/slidesorterbaropt.cxx
@@ -25,6 +25,7 @@
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
+#include <comphelper/lok.hxx>
#include <rtl/instance.hxx>
using namespace ::utl;
@@ -345,7 +346,7 @@ SvtSlideSorterBarOptions::~SvtSlideSorterBarOptions()
bool SvtSlideSorterBarOptions::GetVisibleImpressView() const
{
- return m_pDataContainer->m_bVisibleImpressView;
+ return m_pDataContainer->m_bVisibleImpressView && !comphelper::LibreOfficeKit::isActive();
}
void SvtSlideSorterBarOptions::SetVisibleImpressView(bool bVisible)
@@ -385,7 +386,7 @@ void SvtSlideSorterBarOptions::SetVisibleHandoutView(bool bVisible)
bool SvtSlideSorterBarOptions::GetVisibleSlideSorterView() const
{
- return m_pDataContainer->m_bVisibleSlideSorterView;
+ return m_pDataContainer->m_bVisibleSlideSorterView && !comphelper::LibreOfficeKit::isActive();
}
void SvtSlideSorterBarOptions::SetVisibleSlideSorterView(bool bVisible)