Kaydet (Commit) 1564b0fe authored tarafından Eike Rathke's avatar Eike Rathke

added SvtLanguageTable::AddLanguageTag()

Change-Id: Ic8be508bff3767f2f8ab1146447b3fe4bffff3b3
üst 0b2c8a8b
......@@ -40,6 +40,14 @@ public:
parameter.
*/
static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection );
/** Add a language tag to the table.
@param rString
UI visible description string. If empty, the rLanguageTag Bcp47
string is used instead.
*/
static sal_uInt32 AddLanguageTag( const LanguageTag& rLanguageTag, const OUString& rString );
};
// Add LRE or RLE embedding characters to the string based on the
......
......@@ -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: */
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