summaryrefslogtreecommitdiff
path: root/svx/source/editeng
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-01-28 15:24:28 +0000
committerRüdiger Timm <rt@openoffice.org>2005-01-28 15:24:28 +0000
commit22d822e977ba685647db6e6d739fe55e1a7d9409 (patch)
tree8ff54438888a1933c8bd108f1e764988f5ea00e9 /svx/source/editeng
parentdcef3e3abba09731ed84c415b717c43d95c9f25b (diff)
INTEGRATION: CWS extras16 (1.43.214); FILE MERGED
2005/01/14 16:42:45 tv 1.43.214.1: #i32386# changed to support iso locales in auto correction files
Diffstat (limited to 'svx/source/editeng')
-rw-r--r--svx/source/editeng/svxacorr.cxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/svx/source/editeng/svxacorr.cxx b/svx/source/editeng/svxacorr.cxx
index feccf7649ca3..4934cff62862 100644
--- a/svx/source/editeng/svxacorr.cxx
+++ b/svx/source/editeng/svxacorr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svxacorr.cxx,v $
*
- * $Revision: 1.44 $
+ * $Revision: 1.45 $
*
- * last change: $Author: rt $ $Date: 2005-01-11 13:00:28 $
+ * last change: $Author: rt $ $Date: 2005-01-28 16:24:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,9 @@
#ifndef _TOOLS_TABLE_HXX
#include <tools/table.hxx>
#endif
+#ifndef _ISOLANG_HXX
+#include <tools/isolang.hxx>
+#endif
#ifndef _APP_HXX //autogen
#include <vcl/svapp.hxx>
#endif
@@ -1927,20 +1930,21 @@ BOOL SvxAutoCorrect::FindInCplSttExceptList(LanguageType eLang,
String SvxAutoCorrect::GetAutoCorrFileName( LanguageType eLang,
BOOL bNewFile, BOOL bTst ) const
{
- String sRet, sExt( String::CreateFromInt32( eLang ));
+ String sRet, sExt( ConvertLanguageToIsoString( eLang ) );
sExt.AppendAscii( ".dat" );
-
if( bNewFile )
- ( sRet = sUserAutoCorrFile ) += sExt;
+ ( sRet = sUserAutoCorrFile ) ;
else if( !bTst )
- ( sRet = sShareAutoCorrFile ) += sExt;
+ ( sRet = sShareAutoCorrFile ) ;
else
{
// test first in the user directory - if not exist, then
- ( sRet = sUserAutoCorrFile ) += sExt;
+ ( sRet = sUserAutoCorrFile ) ;
if( !FStatHelper::IsDocument( sRet ))
- ( sRet = sShareAutoCorrFile ) += sExt;
+ ( sRet = sShareAutoCorrFile ) ;
}
+ sRet.AppendAscii( "_" );
+ sRet += sExt;
return sRet;
}