#i107450#: move GetLanguageString to class SvtLanguageTable

This commit is contained in:
Mathias Bauer 2009-12-10 18:36:58 +01:00
parent f6b4434260
commit 7f7d13eeaa
2 changed files with 7 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public:
sal_uInt32 GetEntryCount() const;
LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
static String GetLanguageString( const LanguageType eType );
};
// Add LRE or RLE embedding characters to the string based on the

View file

@ -166,6 +166,12 @@ const String& SvtLanguageTable::GetString( const LanguageType eType ) const
return aEmptyStr;
}
String SvtLanguageTable::GetLanguageString( LanguageType eType )
{
static const SvtLanguageTable aLangTable;
return aLangTable.GetString( eType );
}
//------------------------------------------------------------------------
LanguageType SvtLanguageTable::GetType( const String& rStr ) const