diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-12-10 18:36:58 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-12-10 18:36:58 +0100 |
commit | 7f7d13eeaa915c275bafcd121073dd11e1147340 (patch) | |
tree | 3283aa14ddcf04f03230324646aae43d079d7213 /svtools | |
parent | f6b4434260cdf07b3aa53b85734f9df5ca1f3710 (diff) |
#i107450#: move GetLanguageString to class SvtLanguageTable
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/langtab.hxx | 1 | ||||
-rw-r--r-- | svtools/source/misc/langtab.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/svtools/inc/svtools/langtab.hxx b/svtools/inc/svtools/langtab.hxx index 3a70525bb450..3670b72dca3d 100644 --- a/svtools/inc/svtools/langtab.hxx +++ b/svtools/inc/svtools/langtab.hxx @@ -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 diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index ef2cedcc50c2..bf4e087951ad 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -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 |