summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 11:26:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-24 11:27:51 +0200
commit04a84913ead2f82510d91eea2bb8526274feeeae (patch)
treea123ff892b74a778c6ae61de2e5caa2ee916416f /svl
parenta250292c5eb7e4cdb2aa83bc08ae6c86c3ca65a1 (diff)
use o3tl::typed_flags in ConfigurationListener::ConfigurationChanged
Change-Id: I0ad7c02953aa53168dc242f1f374ab871728c84e
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 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();