[Libreoffice-commits] core.git: include/svtools svtools/source

Eike Rathke erack at redhat.com
Tue May 6 06:22:53 PDT 2014


 include/svtools/langtab.hxx     |    2 ++
 svtools/source/misc/langtab.cxx |   10 ++++++++++
 2 files changed, 12 insertions(+)

New commits:
commit a9ff01648ac19fa0f11ceaa2dfd2f4a475b4008c
Author: Eike Rathke <erack at redhat.com>
Date:   Tue May 6 14:19:42 2014 +0100

    provide static GetLanguageEntryCount() and GetLanguageTypeAtIndex()
    
    Change-Id: I89dc5d25b37169ebc1581ebf957d33dd7b0e204c

diff --git a/include/svtools/langtab.hxx b/include/svtools/langtab.hxx
index 7f437e0..090eb3f 100644
--- a/include/svtools/langtab.hxx
+++ b/include/svtools/langtab.hxx
@@ -49,6 +49,8 @@ public:
     static OUString     GetLanguageString( const LanguageType eType );
     static OUString     GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection );
     static LanguageType GetLanguageType( const OUString& rStr );
+    static sal_uInt32   GetLanguageEntryCount();
+    static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex );
 };
 
 // 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 236f074..2cd2994 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -192,6 +192,11 @@ sal_uInt32 SvtLanguageTable::GetEntryCount() const
     return Count();
 }
 
+sal_uInt32 SvtLanguageTable::GetLanguageEntryCount()
+{
+    return theLanguageTable::get().GetEntryCount();
+}
+
 
 
 LanguageType SvtLanguageTable::GetTypeAtIndex( sal_uInt32 nIndex ) const
@@ -202,6 +207,11 @@ LanguageType SvtLanguageTable::GetTypeAtIndex( sal_uInt32 nIndex ) const
     return nType;
 }
 
+LanguageType SvtLanguageTable::GetLanguageTypeAtIndex( sal_uInt32 nIndex )
+{
+    return theLanguageTable::get().GetTypeAtIndex( nIndex);
+}
+
 
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list