LibreOffice Module unotools (master) 1
|
Public Member Functions | |
SvtSysLocaleOptions_Impl () | |
virtual | ~SvtSysLocaleOptions_Impl () override |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames) override |
is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes. More... | |
const OUString & | GetLocaleString () const |
void | SetLocaleString (const OUString &rStr) |
void | SetUILocaleString (const OUString &rStr) |
const OUString & | GetCurrencyString () const |
void | SetCurrencyString (const OUString &rStr) |
const OUString & | GetDatePatternsString () const |
void | SetDatePatternsString (const OUString &rStr) |
bool | IsDecimalSeparatorAsLocale () const |
void | SetDecimalSeparatorAsLocale (bool bSet) |
bool | IsIgnoreLanguageChange () const |
void | SetIgnoreLanguageChange (bool bSet) |
bool | IsReadOnly (SvtSysLocaleOptions::EOption eOption) const |
const LanguageTag & | GetRealLocale () const |
const LanguageTag & | GetRealUILocale () const |
Public Member Functions inherited from utl::ConfigItem | |
virtual | ~ConfigItem () override |
ConfigItem (ConfigItem const &)=default | |
ConfigItem (ConfigItem &&)=default | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (ConfigItem &&)=delete |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0 |
is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes. More... | |
const OUString & | GetSubTreeName () const |
bool | IsModified () const |
void | Commit () |
ConfigItemMode | GetMode () const |
Public Member Functions inherited from utl::ConfigurationBroadcaster | |
void | AddListener (utl::ConfigurationListener *pListener) |
void | RemoveListener (utl::ConfigurationListener const *pListener) |
void | NotifyListeners (ConfigurationHints nHint) |
ConfigurationBroadcaster () | |
ConfigurationBroadcaster (ConfigurationBroadcaster const &) | |
virtual | ~ConfigurationBroadcaster () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Private Member Functions | |
void | MakeRealLocale () |
void | MakeRealUILocale () |
virtual void | ImplCommit () override |
writes the changed values into the sub tree. More... | |
Static Private Member Functions | |
static Sequence< OUString > | GetPropertyNames () |
Private Attributes | |
LanguageTag | m_aRealLocale |
LanguageTag | m_aRealUILocale |
OUString | m_aLocaleString |
OUString | m_aUILocaleString |
OUString | m_aCurrencyString |
OUString | m_aDatePatternsString |
bool | m_bDecimalSeparator |
bool | m_bIgnoreLanguageChange |
bool | m_bROLocale |
bool | m_bROUILocale |
bool | m_bROCurrency |
bool | m_bRODatePatterns |
bool | m_bRODecimalSeparator |
bool | m_bROIgnoreLanguageChange |
Additional Inherited Members | |
Static Public Member Functions inherited from utl::ConfigItem | |
static css::uno::Sequence< OUString > | GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat) |
static css::uno::Sequence< css::uno::Any > | GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales) |
static bool | PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales) |
static bool | ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode) |
static bool | ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales) |
static bool | SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
Protected Member Functions inherited from utl::ConfigItem | |
ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE) | |
void | SetModified () |
void | ClearModified () |
css::uno::Sequence< css::uno::Any > | GetProperties (const css::uno::Sequence< OUString > &rNames) |
css::uno::Sequence< sal_Bool > | GetReadOnlyStates (const css::uno::Sequence< OUString > &rNames) |
bool | PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues) |
bool | EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false) |
enables notifications about changes on selected sub nodes/values More... | |
void | DisableNotification () |
disables notifications about changes on sub nodes/values, which previously had been enabled with EnableNotification More... | |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode) |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat) |
bool | ClearNodeSet (const OUString &rNode) |
bool | ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements) |
bool | SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | AddNode (const OUString &rNode, const OUString &rNewNode) |
Definition at line 57 of file syslocaleoptions.cxx.
SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl | ( | ) |
Definition at line 141 of file syslocaleoptions.cxx.
References Any, aStr, DBG_ASSERT, utl::ConfigItem::EnableNotification(), utl::ConfigItem::GetProperties(), GetPropertyNames(), utl::ConfigItem::GetReadOnlyStates(), LANGUAGE_SYSTEM, m_aCurrencyString, m_aDatePatternsString, m_aLocaleString, m_aUILocaleString, m_bDecimalSeparator, m_bIgnoreLanguageChange, m_bROCurrency, m_bRODatePatterns, m_bRODecimalSeparator, m_bROIgnoreLanguageChange, m_bROLocale, m_bROUILocale, MakeRealLocale(), MakeRealUILocale(), PROPERTYHANDLE_CURRENCY, PROPERTYHANDLE_DATEPATTERNS, PROPERTYHANDLE_DECIMALSEPARATOR, PROPERTYHANDLE_IGNORELANGCHANGE, PROPERTYHANDLE_LOCALE, PROPERTYHANDLE_UILOCALE, pValues, and SAL_WARN.
|
overridevirtual |
Definition at line 254 of file syslocaleoptions.cxx.
References utl::ConfigItem::IsModified().
|
inline |
Definition at line 93 of file syslocaleoptions.cxx.
References m_aCurrencyString.
|
inline |
Definition at line 97 of file syslocaleoptions.cxx.
References m_aDatePatternsString.
|
inline |
Definition at line 87 of file syslocaleoptions.cxx.
References m_aLocaleString.
|
staticprivate |
Definition at line 128 of file syslocaleoptions.cxx.
References PROPERTYNAME_CURRENCY, PROPERTYNAME_DATEPATTERNS, PROPERTYNAME_DECIMALSEPARATOR, PROPERTYNAME_IGNORELANGCHANGE, PROPERTYNAME_LOCALE, and PROPERTYNAME_UILOCALE.
Referenced by ImplCommit(), and SvtSysLocaleOptions_Impl().
|
inline |
Definition at line 108 of file syslocaleoptions.cxx.
References m_aRealLocale.
|
inline |
Definition at line 109 of file syslocaleoptions.cxx.
References m_aRealUILocale.
|
overrideprivatevirtual |
writes the changed values into the sub tree.
Private and only called from non-virtual public Commit().
Implements utl::ConfigItem.
Definition at line 309 of file syslocaleoptions.cxx.
References Any, GetPropertyNames(), m_aCurrencyString, m_aDatePatternsString, m_aLocaleString, m_aUILocaleString, m_bDecimalSeparator, m_bIgnoreLanguageChange, m_bROCurrency, m_bRODatePatterns, m_bRODecimalSeparator, m_bROIgnoreLanguageChange, m_bROLocale, m_bROUILocale, PROPERTYHANDLE_CURRENCY, PROPERTYHANDLE_DATEPATTERNS, PROPERTYHANDLE_DECIMALSEPARATOR, PROPERTYHANDLE_IGNORELANGCHANGE, PROPERTYHANDLE_LOCALE, PROPERTYHANDLE_UILOCALE, utl::ConfigItem::PutProperties(), pValues, and SAL_WARN.
|
inline |
Definition at line 101 of file syslocaleoptions.cxx.
References m_bDecimalSeparator.
|
inline |
Definition at line 104 of file syslocaleoptions.cxx.
References m_bIgnoreLanguageChange.
bool SvtSysLocaleOptions_Impl::IsReadOnly | ( | SvtSysLocaleOptions::EOption | eOption | ) | const |
Definition at line 285 of file syslocaleoptions.cxx.
References bReadOnly, CFG_READONLY_DEFAULT, SvtSysLocaleOptions::Currency, SvtSysLocaleOptions::DatePatterns, SvtSysLocaleOptions::Locale, m_bROCurrency, m_bRODatePatterns, and m_bROLocale.
|
private |
Definition at line 259 of file syslocaleoptions.cxx.
References MsLangId::getConfiguredSystemLanguage(), m_aLocaleString, m_aRealLocale, LanguageTag::makeFallback(), and LanguageTag::reset().
Referenced by Notify(), SetLocaleString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 272 of file syslocaleoptions.cxx.
References MsLangId::getConfiguredSystemUILanguage(), m_aRealUILocale, m_aUILocaleString, LanguageTag::makeFallback(), and LanguageTag::reset().
Referenced by Notify(), SetUILocaleString(), and SvtSysLocaleOptions_Impl().
|
overridevirtual |
is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes.
Implements utl::ConfigItem.
Definition at line 480 of file syslocaleoptions.cxx.
References Currency, DatePatterns, DBG_ASSERT, utl::ConfigItem::GetProperties(), utl::ConfigItem::GetReadOnlyStates(), Locale, m_aCurrencyString, m_aDatePatternsString, m_aLocaleString, m_aUILocaleString, m_bDecimalSeparator, m_bIgnoreLanguageChange, m_bROCurrency, m_bRODatePatterns, m_bRODecimalSeparator, m_bROIgnoreLanguageChange, m_bROLocale, m_bROUILocale, MakeRealLocale(), MakeRealUILocale(), nCount, NONE, utl::ConfigurationBroadcaster::NotifyListeners(), PROPERTYNAME_CURRENCY, PROPERTYNAME_DATEPATTERNS, PROPERTYNAME_DECIMALSEPARATOR, PROPERTYNAME_IGNORELANGCHANGE, PROPERTYNAME_LOCALE, PROPERTYNAME_UILOCALE, and UiLocale.
void SvtSysLocaleOptions_Impl::SetCurrencyString | ( | const OUString & | rStr | ) |
Definition at line 424 of file syslocaleoptions.cxx.
References Currency, m_aCurrencyString, m_bROCurrency, utl::ConfigurationBroadcaster::NotifyListeners(), and utl::ConfigItem::SetModified().
void SvtSysLocaleOptions_Impl::SetDatePatternsString | ( | const OUString & | rStr | ) |
Definition at line 438 of file syslocaleoptions.cxx.
References DatePatterns, m_aDatePatternsString, m_bRODatePatterns, utl::ConfigurationBroadcaster::NotifyListeners(), and utl::ConfigItem::SetModified().
void SvtSysLocaleOptions_Impl::SetDecimalSeparatorAsLocale | ( | bool | bSet | ) |
Definition at line 452 of file syslocaleoptions.cxx.
References DecSep, m_bDecimalSeparator, utl::ConfigurationBroadcaster::NotifyListeners(), and utl::ConfigItem::SetModified().
void SvtSysLocaleOptions_Impl::SetIgnoreLanguageChange | ( | bool | bSet | ) |
Definition at line 466 of file syslocaleoptions.cxx.
References IgnoreLang, m_bIgnoreLanguageChange, utl::ConfigurationBroadcaster::NotifyListeners(), and utl::ConfigItem::SetModified().
void SvtSysLocaleOptions_Impl::SetLocaleString | ( | const OUString & | rStr | ) |
Definition at line 388 of file syslocaleoptions.cxx.
References Currency, LanguageTag::getLanguageType(), Locale, m_aCurrencyString, m_aLocaleString, m_aRealLocale, m_bROLocale, MakeRealLocale(), utl::ConfigurationBroadcaster::NotifyListeners(), LanguageTag::setConfiguredSystemLanguage(), and utl::ConfigItem::SetModified().
void SvtSysLocaleOptions_Impl::SetUILocaleString | ( | const OUString & | rStr | ) |
Definition at line 407 of file syslocaleoptions.cxx.
References m_aUILocaleString, m_bROUILocale, MakeRealUILocale(), utl::ConfigurationBroadcaster::NotifyListeners(), utl::ConfigItem::SetModified(), and UiLocale.
|
private |
Definition at line 63 of file syslocaleoptions.cxx.
Referenced by GetCurrencyString(), ImplCommit(), Notify(), SetCurrencyString(), SetLocaleString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 64 of file syslocaleoptions.cxx.
Referenced by GetDatePatternsString(), ImplCommit(), Notify(), SetDatePatternsString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 61 of file syslocaleoptions.cxx.
Referenced by GetLocaleString(), ImplCommit(), MakeRealLocale(), Notify(), SetLocaleString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 59 of file syslocaleoptions.cxx.
Referenced by GetRealLocale(), MakeRealLocale(), and SetLocaleString().
|
private |
Definition at line 60 of file syslocaleoptions.cxx.
Referenced by GetRealUILocale(), and MakeRealUILocale().
|
private |
Definition at line 62 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), MakeRealUILocale(), Notify(), SetUILocaleString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 65 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), IsDecimalSeparatorAsLocale(), Notify(), SetDecimalSeparatorAsLocale(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 66 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), IsIgnoreLanguageChange(), Notify(), SetIgnoreLanguageChange(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 70 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), IsReadOnly(), Notify(), SetCurrencyString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 71 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), IsReadOnly(), Notify(), SetDatePatternsString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 72 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), Notify(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 73 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), Notify(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 68 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), IsReadOnly(), Notify(), SetLocaleString(), and SvtSysLocaleOptions_Impl().
|
private |
Definition at line 69 of file syslocaleoptions.cxx.
Referenced by ImplCommit(), Notify(), SetUILocaleString(), and SvtSysLocaleOptions_Impl().