Kaydet (Commit) 213e429c authored tarafından Eike Rathke's avatar Eike Rathke

Revert "remove unused code -SvtLanguageTable::AddLanguageTag"

This reverts commit d812b784.

I added that code in preparation of changes I'm doing.
üst d812b784
...@@ -43,6 +43,13 @@ public: ...@@ -43,6 +43,13 @@ public:
*/ */
static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection ); 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 // Add LRE or RLE embedding characters to the string based on the
......
...@@ -233,4 +233,10 @@ LanguageType SvtLanguageTable::GetLanguageTypeAtIndex( sal_uInt32 nIndex ) ...@@ -233,4 +233,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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -68,6 +68,7 @@ StyleSettings::SetTitleHeight(long) ...@@ -68,6 +68,7 @@ StyleSettings::SetTitleHeight(long)
StyleSettings::SetUseFlatBorders(bool) StyleSettings::SetUseFlatBorders(bool)
StyleSettings::SetUseFlatMenus(bool) StyleSettings::SetUseFlatMenus(bool)
SvpSalInstance::PostedEventsInQueue() SvpSalInstance::PostedEventsInQueue()
SvtLanguageTable::AddLanguageTag(LanguageTag const&, rtl::OUString const&)
SvtListener::IsListening(SvtBroadcaster&) const SvtListener::IsListening(SvtBroadcaster&) const
SvxDummyShapeContainer::SvxDummyShapeContainer(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>) SvxDummyShapeContainer::SvxDummyShapeContainer(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>)
SvxNumberFormatShell::IsAdded_Impl(unsigned long) SvxNumberFormatShell::IsAdded_Impl(unsigned long)
......
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