LibreOffice Module unotools (master) 1
|
SvtSysLocale provides a refcounted single instance of an application wide LocaleDataWrapper and <type>CharClass</type> which always follow the locale as it is currently configured by the user. More...
#include <syslocale.hxx>
Public Member Functions | |
SvtSysLocale () | |
~SvtSysLocale () | |
const LocaleDataWrapper & | GetLocaleData () const |
const CharClass & | GetCharClass () const |
SvtSysLocaleOptions & | GetOptions () const |
It is safe to store the pointers locally and use them AS LONG AS THE INSTANCE OF SvtSysLocale LIVES! It is a faster access but be sure what you do! More... | |
const LanguageTag & | GetLanguageTag () const |
const LanguageTag & | GetUILanguageTag () const |
Private Attributes | |
std::shared_ptr< SvtSysLocale_Impl > | pImpl |
Friends | |
class | SvtSysLocale_Impl |
SvtSysLocale provides a refcounted single instance of an application wide LocaleDataWrapper and <type>CharClass</type> which always follow the locale as it is currently configured by the user.
You may use it anywhere to access the locale data elements like decimal separator and simple date formatting and so on. Constructing and destructing a SvtSysLocale is not expensive as long as there is at least one instance left.
Definition at line 43 of file syslocale.hxx.
SvtSysLocale::SvtSysLocale | ( | ) |
Definition at line 129 of file syslocale.cxx.
References pImpl.
SvtSysLocale::~SvtSysLocale | ( | ) |
Definition at line 140 of file syslocale.cxx.
References pImpl.
const CharClass & SvtSysLocale::GetCharClass | ( | ) | const |
Definition at line 151 of file syslocale.cxx.
References pImpl.
const LanguageTag & SvtSysLocale::GetLanguageTag | ( | ) | const |
Definition at line 161 of file syslocale.cxx.
References comphelper::LibreOfficeKit::getLocale(), comphelper::LibreOfficeKit::isActive(), and pImpl.
Referenced by SvtCompatibilityOptions_Impl::SvtCompatibilityOptions_Impl().
const LocaleDataWrapper & SvtSysLocale::GetLocaleData | ( | ) | const |
SvtSysLocaleOptions & SvtSysLocale::GetOptions | ( | ) | const |
It is safe to store the pointers locally and use them AS LONG AS THE INSTANCE OF SvtSysLocale LIVES! It is a faster access but be sure what you do!
Definition at line 156 of file syslocale.cxx.
References pImpl.
const LanguageTag & SvtSysLocale::GetUILanguageTag | ( | ) | const |
Definition at line 169 of file syslocale.cxx.
References comphelper::LibreOfficeKit::getLanguageTag(), comphelper::LibreOfficeKit::isActive(), and pImpl.
Referenced by SvtUserOptions::Impl::GetFullName(), and utl::DefaultFontConfiguration::getUserInterfaceFont().
|
friend |
Definition at line 45 of file syslocale.hxx.
|
private |
Definition at line 47 of file syslocale.hxx.
Referenced by GetCharClass(), GetLanguageTag(), GetLocaleData(), GetOptions(), GetUILanguageTag(), SvtSysLocale(), and ~SvtSysLocale().