diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-06-24 06:49:30 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-06-24 06:49:30 +0000 |
commit | ccd507fd941d8fe44e5df924983c7c21818b2b2d (patch) | |
tree | 8f18ab437500a366afca3b60e9acbbf44e59fea6 /linguistic | |
parent | 7920abc6fe40de4785bb16d2756688287dd6bc26 (diff) |
INTEGRATION: CWS sw017 (1.18.8); FILE MERGED
2003/06/16 13:28:09 tl 1.18.8.1: #i15267# apostroph / typographic apostroph handling fixed
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/misc.cxx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index 4b422b1e1b98..c9cef60e5ecc 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: misc.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: rt $ $Date: 2003-04-24 14:01:53 $ + * last change: $Author: vg $ $Date: 2003-06-24 07:49:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -103,6 +103,9 @@ #ifndef _UNOTOOLS_PROCESSFACTORY_HXX_ #include <unotools/processfactory.hxx> #endif +#ifndef _UNOTOOLS_LOCALEDATAWRAPPER_HXX +#include <unotools/localedatawrapper.hxx> +#endif #include "misc.hxx" #include "defs.hxx" @@ -133,6 +136,23 @@ osl::Mutex & GetLinguMutex() /////////////////////////////////////////////////////////////////////////// +LocaleDataWrapper & GetLocaleDataWrapper( INT16 nLang ) +{ + static LocaleDataWrapper aLclDtaWrp( + getProcessServiceFactory(), + CreateLocale( Application::GetSettings().GetUILanguage() ) ); + + const Locale &rLcl = aLclDtaWrp.getLoadedLocale(); + Locale aLcl( CreateLocale( nLang ) ); + if (aLcl.Language != rLcl.Language || + aLcl.Country != rLcl.Country || + aLcl.Variant != rLcl.Variant) + aLclDtaWrp.setLocale( aLcl ); + return aLclDtaWrp; +} + +/////////////////////////////////////////////////////////////////////////// + /** returns text-encoding used for ByteString unicode String conversion */ |