| Type | required |
| Title | moved tools/{iso,}lang.hxx to i18npool/{lang.h,mslangid.hxx} |
| Posted by | [EMAIL PROTECTED] |
| Affected | ,all |
| Effective from | CWS internatiodel |
Summary
Moved tools/lang.hxx to i18npool/lang.h
- #ifndef _TOOLS_LANG_HXX
- #include <tools/lang.hxx>
+ #ifndef INCLUDED_I18NPOOL_LANG_H
+ #include <i18npool/lang.h>
Moved tools/isolang.hxx to i18npool/mslangid.hxx
- #ifndef _TOOLS_ISOLANG_HXX
- #include <tools/isolang.hxx>
- ... ConvertLanguageTo...
- ... Convert...ToLanguage
+ #ifndef INCLUDED_I18NPOOL_MSLANGID_HXX
+ #include <i18npool/mslangid.hxx>
class MsLangId {
+ static inline LanguageType makeLangID( LanguageType nSubLangId, LanguageType nPriLangId )
+ static inline LanguageType getPrimaryLanguage( LanguageType nLangID)
+ static inline LanguageType getSubLanguage( LanguageType nLangID)
+ static ::com::sun::star::lang::Locale convertLanguageToLocale( LanguageType nLang, bool bResolveSystem = true );
+ static void convertLanguageToLocale( LanguageType nLang, ::com::sun::star::lang::Locale & rLocale );
+ static LanguageType convertLocaleToLanguage( const ::com::sun::star::lang::Locale & rLocale );
+ static LanguageType getSystemLanguage();
+ static LanguageType getSystemUILanguage();
+ static LanguageType getRealLanguage( LanguageType nLang );
+ static void convertLanguageToIsoNames( LanguageType nLang, rtl::OUString& rLangStr, rtl::OUString& rCountry );
+ static void convertLanguageToIsoNames( LanguageType nLang, rtl::OString& rLangStr, rtl::OString& rCountry );
+ static rtl::OUString convertLanguageToIsoString( LanguageType nLang, sal_Unicode cSep = '-' );
+ static rtl::OString convertLanguageToIsoByteString( LanguageType nLang, sal_Char cSep = '-' );
+ static LanguageType convertIsoNamesToLanguage( const rtl::OUString& rLang, const rtl::OUString& rCountry );
+ static LanguageType convertIsoNamesToLanguage( const rtl::OString& rLang, const rtl::OString& rCountry );
+ static LanguageType convertIsoStringToLanguage( const rtl::OUString& rString, sal_Unicode cSep = '-' );
+ static LanguageType convertIsoByteStringToLanguage( const rtl::OString& rString, sal_Char cSep = '-' );
+ static LanguageType convertUnxByteStringToLanguage( const rtl::OString& rString );
+ static LanguageType getRealLanguageWithoutConfig( LanguageType nLang );
+ static bool isRightToLeft( LanguageType nLang );
+ static sal_Int16 getScriptType( LanguageType nLang );
+ static void setConfiguredSystemLanguage( LanguageType nLang );
+ static void setConfiguredSystemUILanguage( LanguageType nLang );
}; // class MsLangId
New library i18nisolang$(ISOLANG_MAJOR)$(COMID) available in makefiles as
$(I18NISOLANGLIB)
Moved all implementation from
- tools/source/intntl/*
to
+ i18npool/source/isolang/
Reminder: as already announced on 2005-06-30 and 2005-07-01 removed the entire
- class International
- tools/intn.hxx
Description
For a detailed description of class MsLangId's methods please see the
header
file i18npool/inc/i18npool/mslangid.hxx respectively the delivered
i18npool/mslangid.hxx in the solver.
NOTES:
New LANGUAGE_... defines must be added to i18npool/inc/lang.h
New ISO 639 and ISO 3166 mappings must be added to aImplIsoLangEntries in
i18npool/source/isolang/isolang.cxx
If a new RTL locale is to be supported, the only place where to add
it, apart
from glyph layout specifics, should now be MsLangId::isRightToLeft() in
i18npool/source/isolang/mslangid.cxx. MsLangId::isRightToLeft() is
called by
VCL's AllSettings::GetLayoutRTL(), SC's ScGlobal::IsSystemRTL(), SD's
SdDrawDocument::SdDrawDocument() and SW's GetDefaultFrameDirection() and
replaces the previous hand-woven approaches therein.
New CTL or CJK locales must be added to MsLangId::getScriptType() in
i18npool/source/isolang/mslangid.cxx. MsLangId::getScriptType() is
called by
SVTOOLS' SvtLanguageOptions::GetScriptTypeOfLanguage().
=> if no new entries in SVX's language listbox
svx/source/dialog/langtab.src
are needed, it is sufficient to add module i18npool to the CWS.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
