diff options
author | Andras Timar <andras.timar@collabora.com> | 2022-11-25 22:15:48 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-12-04 11:23:01 +0000 |
commit | 17caf28907ae14ecd84f270cf11e984f5bc553c1 (patch) | |
tree | c7952e1974b9864af184e17208f36d2ffa25bd05 /cui/source/tabpages | |
parent | adcedbea71024470783406a187516be4b7bfb4d6 (diff) |
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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit d3f3be20599e66d4d6eacc0fa73b5ab3fa6c2dee)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143581
Tested-by: Jenkins
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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() |