From 04a84913ead2f82510d91eea2bb8526274feeeae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Nov 2016 11:26:19 +0200 Subject: use o3tl::typed_flags in ConfigurationListener::ConfigurationChanged Change-Id: I0ad7c02953aa53168dc242f1f374ab871728c84e --- svl/source/config/cjkoptions.cxx | 4 ++-- svl/source/config/ctloptions.cxx | 16 ++++++++-------- svl/source/numbers/zforlist.cxx | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'svl') diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx index 3556cb7fb0dc..691948830636 100644 --- a/svl/source/config/cjkoptions.cxx +++ b/svl/source/config/cjkoptions.cxx @@ -144,7 +144,7 @@ void SvtCJKOptions_Impl::SetAll(bool bSet) SetModified(); Commit(); - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } @@ -231,7 +231,7 @@ void SvtCJKOptions_Impl::Load() void SvtCJKOptions_Impl::Notify( const Sequence< OUString >& ) { Load(); - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } void SvtCJKOptions_Impl::ImplCommit() diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx index 311a56a84fda..cc4604004f3b 100644 --- a/svl/source/config/ctloptions.cxx +++ b/svl/source/config/ctloptions.cxx @@ -134,7 +134,7 @@ SvtCTLOptions_Impl::~SvtCTLOptions_Impl() void SvtCTLOptions_Impl::Notify( const Sequence< OUString >& ) { Load(); - NotifyListeners(SFX_HINT_CTL_SETTINGS_CHANGED); + NotifyListeners(ConfigurationHints::CtlSettingsChanged); } void SvtCTLOptions_Impl::ImplCommit() @@ -224,7 +224,7 @@ void SvtCTLOptions_Impl::ImplCommit() aValues.realloc(nRealCount); PutProperties( aNames, aValues ); //broadcast changes - NotifyListeners(SFX_HINT_CTL_SETTINGS_CHANGED); + NotifyListeners(ConfigurationHints::CtlSettingsChanged); } void SvtCTLOptions_Impl::Load() @@ -324,7 +324,7 @@ void SvtCTLOptions_Impl::SetCTLFontEnabled( bool _bEnabled ) { m_bCTLFontEnabled = _bEnabled; SetModified(); - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } void SvtCTLOptions_Impl::SetCTLSequenceChecking( bool _bEnabled ) @@ -333,7 +333,7 @@ void SvtCTLOptions_Impl::SetCTLSequenceChecking( bool _bEnabled ) { SetModified(); m_bCTLSequenceChecking = _bEnabled; - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } void SvtCTLOptions_Impl::SetCTLSequenceCheckingRestricted( bool _bEnabled ) @@ -342,7 +342,7 @@ void SvtCTLOptions_Impl::SetCTLSequenceCheckingRestricted( bool _bEnabled ) { SetModified(); m_bCTLRestricted = _bEnabled; - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } void SvtCTLOptions_Impl::SetCTLSequenceCheckingTypeAndReplace( bool _bEnabled ) @@ -351,7 +351,7 @@ void SvtCTLOptions_Impl::SetCTLSequenceCheckingTypeAndReplace( bool _bEnabled ) { SetModified(); m_bCTLTypeAndReplace = _bEnabled; - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } void SvtCTLOptions_Impl::SetCTLCursorMovement( SvtCTLOptions::CursorMovement _eMovement ) @@ -360,7 +360,7 @@ void SvtCTLOptions_Impl::SetCTLCursorMovement( SvtCTLOptions::CursorMovement _eM { SetModified(); m_eCTLCursorMovement = _eMovement; - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } void SvtCTLOptions_Impl::SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumerals ) @@ -369,7 +369,7 @@ void SvtCTLOptions_Impl::SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumer { SetModified(); m_eCTLTextNumerals = _eNumerals; - NotifyListeners(0); + NotifyListeners(ConfigurationHints::NONE); } } diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index c2617a534a4b..964abdce3a0c 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -178,7 +178,7 @@ public: size_t Count() { return aFormatters.size(); } - virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) override; + virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, ConfigurationHints ) override; }; SvNumberFormatterRegistry_Impl::SvNumberFormatterRegistry_Impl() @@ -208,22 +208,22 @@ void SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter* pThis ) } void SvNumberFormatterRegistry_Impl::ConfigurationChanged( utl::ConfigurationBroadcaster*, - sal_uInt32 nHint) + ConfigurationHints nHint) { ::osl::MutexGuard aGuard( SvNumberFormatter::GetMutex() ); - if ( nHint & SYSLOCALEOPTIONS_HINT_LOCALE ) + if ( nHint & ConfigurationHints::Locale ) { for(SvNumberFormatter* pFormatter : aFormatters) pFormatter->ReplaceSystemCL( eSysLanguage ); eSysLanguage = MsLangId::getRealLanguage( LANGUAGE_SYSTEM ); } - if ( nHint & SYSLOCALEOPTIONS_HINT_CURRENCY ) + if ( nHint & ConfigurationHints::Currency ) { for(SvNumberFormatter* pFormatter : aFormatters) pFormatter->ResetDefaultSystemCurrency(); } - if ( nHint & SYSLOCALEOPTIONS_HINT_DATEPATTERNS ) + if ( nHint & ConfigurationHints::DatePatterns ) { for(SvNumberFormatter* pFormatter : aFormatters) pFormatter->InvalidateDateAcceptancePatterns(); -- cgit