summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 11:26:19 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-18 01:08:06 -0500
commit0c8a76cec8bc5cb72d4140ade378037d2a166476 (patch)
treea86f0190ee5ecc72243b24867d588ed896dd7053 /svl
parent42fdf23f4d9be733f68196890ec7444ef1c3cf85 (diff)
use o3tl::typed_flags in ConfigurationListener::ConfigurationChanged
Change-Id: I0ad7c02953aa53168dc242f1f374ab871728c84e (cherry picked from commit 04a84913ead2f82510d91eea2bb8526274feeeae) (cherry picked from commit acd0975a4e660096d6c575e8db022e96c7680aca)
Diffstat (limited to 'svl')
-rw-r--r--svl/source/config/cjkoptions.cxx4
-rw-r--r--svl/source/config/ctloptions.cxx16
-rw-r--r--svl/source/numbers/zforlist.cxx10
3 files changed, 15 insertions, 15 deletions
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 108babe2da50..2f0853b8e218 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();