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

New commits:
commit 17caf28907ae14ecd84f270cf11e984f5bc553c1
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 11:23:01 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>
    (cherry picked from commit d3f3be20599e66d4d6eacc0fa73b5ab3fa6c2dee)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143581
    Tested-by: Jenkins

diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index e65c49617701..7790ff60a8c2 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;
@@ -149,6 +150,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