diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-06 15:34:53 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-06 15:37:07 +0100 |
commit | 92e10ac194075fd0777256fa53f805581bb98931 (patch) | |
tree | a1e4c8ef61bcfb44e1b31f4d2aae7533f098f75d /include | |
parent | db06595d13ab00c1c7584456b4bcd85797eadaa9 (diff) |
make all SvtLanguageTable non-static methods private
This effectively behaves now like a singleton.
Change-Id: Ib7a455a423f247267358d819e13d285428fe3aa8
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/langtab.hxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/svtools/langtab.hxx b/include/svtools/langtab.hxx index 090eb3fdf897..e19aa75d6345 100644 --- a/include/svtools/langtab.hxx +++ b/include/svtools/langtab.hxx @@ -34,23 +34,27 @@ public: SvtLanguageTable(); ~SvtLanguageTable(); + static OUString GetLanguageString( const LanguageType eType ); + static LanguageType GetLanguageType( const OUString& rStr ); + static sal_uInt32 GetLanguageEntryCount(); + static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex ); + /** @param bUserInterfaceSelection If TRUE, don't replace an UI-only locale. Only use for Tools->Options->LanguageSettings->UserInterface listbox. - If FALSE, do replace. + If FALSE, do replace; same as GetLanguageString() without bool + parameter. */ - const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const; - LanguageType GetType( const OUString& rStr ) const; + static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection ); +private: + + const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const; + LanguageType GetType( const OUString& rStr ) const; sal_uInt32 GetEntryCount() const; LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const; - static OUString GetLanguageString( const LanguageType eType ); - static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection ); - static LanguageType GetLanguageType( const OUString& rStr ); - static sal_uInt32 GetLanguageEntryCount(); - static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex ); }; // Add LRE or RLE embedding characters to the string based on the |