diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-09 21:43:55 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-10 00:39:44 +0200 |
commit | 1564b0fe7c00902b076725b0693cc60aec0e0916 (patch) | |
tree | ffa95b5ee15194f43a765d8e74796e39b5482502 /svtools | |
parent | 0b2c8a8b2b7cd41ed8e25d2e184a8e7241abed02 (diff) |
added SvtLanguageTable::AddLanguageTag()
Change-Id: Ic8be508bff3767f2f8ab1146447b3fe4bffff3b3
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/langtab.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index 08d50bd82482..d97f382f27dd 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -227,5 +227,10 @@ LanguageType SvtLanguageTable::GetLanguageTypeAtIndex( sal_uInt32 nIndex ) } +sal_uInt32 SvtLanguageTable::AddLanguageTag( const LanguageTag& rLanguageTag, const OUString& rString ) +{ + return theLanguageTable::get().AddItem( (rString.isEmpty() ? rLanguageTag.getBcp47() : rString), + rLanguageTag.getLanguageType()); +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |