Kaydet (Commit) 92e10ac1 authored tarafından Eike Rathke's avatar Eike Rathke

make all SvtLanguageTable non-static methods private

This effectively behaves now like a singleton.

Change-Id: Ib7a455a423f247267358d819e13d285428fe3aa8
üst db06595d
...@@ -34,23 +34,27 @@ public: ...@@ -34,23 +34,27 @@ public:
SvtLanguageTable(); SvtLanguageTable();
~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 @param bUserInterfaceSelection
If TRUE, don't replace an UI-only locale. Only use for If TRUE, don't replace an UI-only locale. Only use for
Tools->Options->LanguageSettings->UserInterface listbox. 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; static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection );
LanguageType GetType( const OUString& rStr ) const;
private:
const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const;
LanguageType GetType( const OUString& rStr ) const;
sal_uInt32 GetEntryCount() const; sal_uInt32 GetEntryCount() const;
LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) 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 // Add LRE or RLE embedding characters to the string based on the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment