+bool SvtLanguageTable::HasLanguageType()
Change-Id: Id57eb51b69e50be78f85d19a7b3623c1acdf6509
This commit is contained in:
parent
407db84412
commit
2a8eff589a
@ -29,6 +29,7 @@ class SVT_DLLPUBLIC SvtLanguageTable
|
||||
{
|
||||
public:
|
||||
|
||||
static bool HasLanguageType( const LanguageType eType );
|
||||
static OUString GetLanguageString( const LanguageType eType );
|
||||
static LanguageType GetLanguageType( const OUString& rStr );
|
||||
static sal_uInt32 GetLanguageEntryCount();
|
||||
|
@ -43,6 +43,7 @@ public:
|
||||
SvtLanguageTableImpl();
|
||||
virtual ~SvtLanguageTableImpl();
|
||||
|
||||
bool HasType( const LanguageType eType ) const;
|
||||
const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const;
|
||||
LanguageType GetType( const OUString& rStr ) const;
|
||||
sal_uInt32 GetEntryCount() const;
|
||||
@ -148,6 +149,19 @@ SvtLanguageTableImpl::~SvtLanguageTableImpl()
|
||||
}
|
||||
|
||||
|
||||
bool SvtLanguageTableImpl::HasType( const LanguageType eType ) const
|
||||
{
|
||||
LanguageType eLang = MsLangId::getReplacementForObsoleteLanguage( eType, false);
|
||||
sal_uInt32 nPos = FindIndex( eLang );
|
||||
|
||||
return RESARRAY_INDEX_NOTFOUND != nPos && nPos < Count();
|
||||
}
|
||||
|
||||
bool SvtLanguageTable::HasLanguageType( const LanguageType eType )
|
||||
{
|
||||
return theLanguageTable::get().HasType( eType );
|
||||
}
|
||||
|
||||
|
||||
const OUString SvtLanguageTableImpl::GetString( const LanguageType eType, bool bUserInterfaceSelection ) const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user