cui/source/tabpages/tpcolor.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit d3f3be20599e66d4d6eacc0fa73b5ab3fa6c2dee
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Fri Nov 25 22:15:48 2022 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Sun Dec 4 09:11:46 2022 +0000

    it is not possible to install color palette extensions in Online or mobile 
apps
    
    Change-Id: Ibb2e9bfcf4b8e8681f96e6863fd900181c278adf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143309
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 67e24c371c68..64c8c725d999 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -36,6 +36,7 @@
 #include <officecfg/Office/Common.hxx>
 #include <osl/diagnose.h>
 #include <comphelper/dispatchcommand.hxx>
+#include <comphelper/lok.hxx>
 #include <comphelper/propertyvalue.hxx>
 
 using namespace com::sun::star;
@@ -150,6 +151,12 @@ SvxColorTabPage::SvxColorTabPage(weld::Container* pPage, 
weld::DialogController*
     maPaletteManager.ReloadRecentColorSet(*m_xValSetRecentList);
     aSize = 
m_xValSetRecentList->layoutAllVisible(maPaletteManager.GetRecentColorCount());
     m_xValSetRecentList->set_size_request(aSize.Width(), aSize.Height());
+
+    // it is not possible to install color palette extensions in Online or 
mobile apps
+    if(comphelper::LibreOfficeKit::isActive())
+    {
+        m_xMoreColors->hide();
+    }
 }
 
 SvxColorTabPage::~SvxColorTabPage()

Reply via email to