[Libreoffice-commits] core.git: include/svtools
Eike Rathke
erack at redhat.com
Tue May 6 07:37:33 PDT 2014
include/svtools/langtab.hxx | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
New commits:
commit 92e10ac194075fd0777256fa53f805581bb98931
Author: Eike Rathke <erack at redhat.com>
Date: Tue May 6 15:34:53 2014 +0100
make all SvtLanguageTable non-static methods private
This effectively behaves now like a singleton.
Change-Id: Ib7a455a423f247267358d819e13d285428fe3aa8
diff --git a/include/svtools/langtab.hxx b/include/svtools/langtab.hxx
index 090eb3f..e19aa75 100644
--- a/include/svtools/langtab.hxx
+++ b/include/svtools/langtab.hxx
@@ -34,23 +34,27 @@ public:
SvtLanguageTable();
~SvtLanguageTable();
+ static OUString GetLanguageString( const LanguageType eType );
+ static LanguageType GetLanguageType( const OUString& rStr );
+ static sal_uInt32 GetLanguageEntryCount();
+ static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex );
+
/**
@param bUserInterfaceSelection
If TRUE, don't replace an UI-only locale. Only use for
Tools->Options->LanguageSettings->UserInterface listbox.
- If FALSE, do replace.
+ If FALSE, do replace; same as GetLanguageString() without bool
+ parameter.
*/
- const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const;
- LanguageType GetType( const OUString& rStr ) const;
+ static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection );
+private:
+
+ const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const;
+ LanguageType GetType( const OUString& rStr ) const;
sal_uInt32 GetEntryCount() const;
LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
- 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
More information about the Libreoffice-commits
mailing list