diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-22 16:47:49 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-26 15:03:15 +0200 |
commit | ca54fdefb9f063af125a3083ec67a7a17541c5c1 (patch) | |
tree | 91ef00454478b0af96b9139fb90d17be2545dc92 /sfx2 | |
parent | 08daf03c139a8b585f7713314ea73e2ff109fd37 (diff) |
LOK: sidebar: hide gallery, navigation and styles decks
These aren't fully functional, so not very useful in LOK.
Change-Id: If6330b1f7bf911bbb9edad00aaea7c4d37671746
Reviewed-on: https://gerrit.libreoffice.org/73514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index f59efbab5706..1dfcd370794c 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -24,6 +24,7 @@ #include <officecfg/Office/UI/Sidebar.hxx> #include <unotools/confignode.hxx> +#include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/namedvaluecollection.hxx> #include <comphelper/sequence.hxx> @@ -258,7 +259,16 @@ void ResourceManager::ReadDeckList() maDecks.clear(); for (sal_Int32 nReadIndex(0); nReadIndex<nCount; ++nReadIndex) { - const utl::OConfigurationNode aDeckNode(aDeckRootNode.openNode(aDeckNodeNames[nReadIndex])); + const OUString aDeckName = aDeckNodeNames[nReadIndex]; + if (comphelper::LibreOfficeKit::isActive()) + { + // Hide these decks in LOK as they aren't fully functional. + if (aDeckName == "GalleryDeck" || aDeckName == "NavigatorDeck" + || aDeckName == "StyleListDeck") + continue; + } + + const utl::OConfigurationNode aDeckNode(aDeckRootNode.openNode(aDeckName)); if (!aDeckNode.isValid()) continue; |