cui/source/options/optchart.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 08ac4318176074f046ed3422d9dd7ace4591023e Author: Balazs Varga <balazs.varga.ext...@allotropia.de> AuthorDate: Thu Nov 2 21:46:11 2023 +0100 Commit: Balazs Varga <balazs.varga.ext...@allotropia.de> CommitDate: Fri Nov 3 10:51:47 2023 +0100 tdf#158000 - UI: Part 17 - Unify lockdown behavior of Options dialog for Chart Page. Change-Id: I374a0dc8ff43be490e64a7173963e04005aec7e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158852 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de> diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx index 66ab40df6e22..eef87d2cd324 100644 --- a/cui/source/options/optchart.cxx +++ b/cui/source/options/optchart.cxx @@ -26,6 +26,7 @@ #include <svx/svxids.hrc> #include <osl/diagnose.h> #include <officecfg/Office/Common.hxx> +#include <officecfg/Office/Chart.hxx> void SvxDefaultColorOptPage::InsertColorEntry(const XColorEntry& rEntry, sal_Int32 nPos) { @@ -100,6 +101,14 @@ SvxDefaultColorOptPage::SvxDefaultColorOptPage(weld::Container* pPage, weld::Dia { m_xLbChartColors->set_size_request(-1, m_xLbChartColors->get_height_rows(16)); + if (officecfg::Office::Chart::DefaultColor::Series::isReadOnly()) + { + m_xPBDefault->set_sensitive(false); + m_xPBAdd->set_sensitive(false); + m_xPBRemove->set_sensitive(false); + m_xValSetColorBoxWin->set_sensitive(false); + } + m_xPBDefault->connect_clicked( LINK( this, SvxDefaultColorOptPage, ResetToDefaults ) ); m_xPBAdd->connect_clicked( LINK( this, SvxDefaultColorOptPage, AddChartColor ) ); m_xPBRemove->connect_clicked( LINK( this, SvxDefaultColorOptPage, RemoveChartColor ) );