summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2020-04-29 16:29:57 +0300
committerAndras Timar <andras.timar@collabora.com>2020-05-07 07:06:26 +0200
commit7f578ebe3cd824c05492c8fce9a1ed60bb5cfdfa (patch)
treeb66cd92ef05de9f0df9ffccd2c5cdfb5cacd3a93 /sfx2
parentf120af264412caf1f3e7446981070ee8da9a076b (diff)
added ability to switch sidebar deck on init.cxx for mobilewizard
Change-Id: I532398bc41e1c984c24b1d39e4844315a0a69847 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93162 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/ResourceManager.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index f563943e150d..0642109b1dd2 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -430,6 +430,15 @@ void ResourceManager::ReadPanelList()
if (!aPanelNode.isValid())
continue;
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ // Hide these panels in LOK as they aren't fully functional.
+ OUString aPanelId = getString(aPanelNode, "Id");
+ if (aPanelId == "PageStylesPanel" || aPanelId == "PageHeaderPanel"
+ || aPanelId == "PageFooterPanel")
+ continue;
+ }
+
maPanels.push_back(std::make_shared<PanelDescriptor>());
PanelDescriptor& rPanelDescriptor(*maPanels.back());