summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appserv.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2001-07-10 06:12:52 +0000
committerPeter Burow <pb@openoffice.org>2001-07-10 06:12:52 +0000
commit4974c4d4cc4512c0cbd52e5919d9a58dd46eb193 (patch)
tree99e3f5f64c9340ebb022312fecfcb933dc6ebb30 /sfx2/source/appl/appserv.cxx
parent8050cdc854e0a76f26d92f848949838dcddccd02 (diff)
fix: #87257# class International removed
Diffstat (limited to 'sfx2/source/appl/appserv.cxx')
-rw-r--r--sfx2/source/appl/appserv.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 9b3bfda17d..ca8eaaf20b 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appserv.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: pb $ $Date: 2001-06-29 08:49:29 $
+ * last change: $Author: pb $ $Date: 2001-07-10 07:12:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,6 +77,9 @@
#ifndef _SVT_DOC_ADDRESSTEMPLATE_HXX_
#include <svtools/addresstemplate.hxx>
#endif
+#ifndef _UNOTOOLS_INTLWRAPPER_HXX
+#include <unotools/intlwrapper.hxx>
+#endif
#ifndef _SV_CONFIG_HXX
#include <vcl/config.hxx>
@@ -289,13 +292,14 @@ void SfxApplication::BasicLibExec_Impl( SfxRequest &rReq, BasicManager *pMgr )
if ( aLibName.Len() )
{
// Die Library zum "ubergebenen Namen suchen
- const International &rInter = Application::GetAppInternational();
+ IntlWrapper aIntlWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
+ const CollatorWrapper* pCollator = aIntlWrapper.getCollator();
USHORT nLibCount = pMgr->GetLibCount();
StarBASIC *pLib = NULL;
USHORT nLib;
for ( nLib = 0; nLib < nLibCount; ++nLib )
{
- if ( COMPARE_EQUAL == rInter.Compare( pMgr->GetLibName( nLib ), aLibName, INTN_COMPARE_IGNORECASE ) )
+ if ( COMPARE_EQUAL == pCollator->compareString( pMgr->GetLibName( nLib ), aLibName ) )
{
pLib = pMgr->GetLib( nLib );
break;
@@ -746,6 +750,7 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
int bFoundMiniMDI = FALSE;
int bFoundNonDesktopMDI = FALSE;
+ LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
const USHORT *pRanges = rSet.GetRanges();
DBG_ASSERT(pRanges && *pRanges, "Set ohne Bereich");
while ( *pRanges )
@@ -799,12 +804,12 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
case SID_CURRENTTIME:
{
- rSet.Put( SfxStringItem( nWhich, Application::GetAppInternational().GetTime( Time(), FALSE ) ) );
+ rSet.Put( SfxStringItem( nWhich, aLocaleWrapper.getTime( Time(), FALSE ) ) );
break;
}
case SID_CURRENTDATE:
{
- rSet.Put( SfxStringItem( nWhich, Application::GetAppInternational().GetDate( Date() ) ) );
+ rSet.Put( SfxStringItem( nWhich, aLocaleWrapper.getDate( Date() ) ) );
break;
}