From 7f7a0275be241b8a5e1d1cda0a1da613e3af61d3 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Thu, 16 Jan 2014 23:21:53 +0100 Subject: fdo#71511: reload ColorConfig after tweaking relevant a11y settings note that the autodetect HC option is somewhat broken anyway: it resets the icon theme hard, so there are not simple roundtrips enableing/disabling it for that, but those havent been there before either. Change-Id: Ia35a41717224dfb7437054bb885c61d7e0b189d7 --- svtools/source/config/accessibilityoptions.cxx | 4 +++- svtools/source/config/colorcfg.cxx | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'svtools') diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx index 4294e7cc091a..84f0e1c30b7e 100644 --- a/svtools/source/config/accessibilityoptions.cxx +++ b/svtools/source/config/accessibilityoptions.cxx @@ -31,6 +31,8 @@ #include +#include + #include #include #include @@ -386,7 +388,7 @@ void SvtAccessibilityOptions_Impl::SetAutoDetectSystemHC(sal_Bool bSet) { xNode->setPropertyValue(s_sAutoDetectSystemHC, css::uno::makeAny(bSet)); ::comphelper::ConfigurationHelper::flush(m_xCfg); - + svtools::ColorConfig().Reload(); bIsModified = sal_True; } } diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 81a1b20440d5..a8e5ba89929a 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -510,6 +510,11 @@ ColorConfigValue ColorConfig::GetColorValue(ColorConfigEntry eEntry, sal_Bool bS return aRet; } +void ColorConfig::Reload() +{ + m_pImpl->Load(OUString()); +} + EditableColorConfig::EditableColorConfig() : m_pImpl(new ColorConfig_Impl), m_bModified(sal_False) -- cgit