summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-04-07 12:47:07 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-04-07 12:47:07 +0000
commit9338568d38af86f33bda578b3373452f6d18eb30 (patch)
tree003baedf9f4356db008b4fbae29f3e8bb798a4f3 /linguistic
parented4ae70a896f66d08e5cdba06cae4006a12714ba (diff)
INTEGRATION: CWS internatiodel (1.4.26); FILE MERGED
2006/02/10 19:27:21 er 1.4.26.1: #i52115# move LangIDs and ISO conversion from tools to i18npool; introduce class MsLangId and libi18nisolang
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdicxml.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx
index b88698f3bc31..39c32a64e41b 100644
--- a/linguistic/source/convdicxml.cxx
+++ b/linguistic/source/convdicxml.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: convdicxml.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 19:49:30 $
+ * last change: $Author: vg $ $Date: 2006-04-07 13:47:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,9 +33,6 @@
*
************************************************************************/
-#ifndef _LANG_HXX //autogen wg. LANGUAGE_ENGLISH_US
-#include <tools/lang.hxx>
-#endif
#ifndef _URLOBJ_HXX
#include <tools/urlobj.hxx>
#endif
@@ -48,8 +45,8 @@
#ifndef _STRING_HXX
#include <tools/string.hxx>
#endif
-#ifndef _ISOLANG_HXX
-#include <tools/isolang.hxx>
+#ifndef INCLUDED_I18NPOOL_MSLANGID_HXX
+#include <i18npool/mslangid.hxx>
#endif
#ifndef _STREAM_HXX
#include <tools/stream.hxx>
@@ -305,7 +302,7 @@ void ConvDicXMLDictionaryContext_Impl::StartElement(
OUString aValue = rxAttrList->getValueByIndex(i);
if (nPrefix == XML_NAMESPACE_TCD && aLocalName.equalsAscii( "lang" ))
- nLanguage = ConvertIsoStringToLanguage( aValue );
+ nLanguage = MsLangId::convertIsoStringToLanguage( aValue );
else if (nPrefix == XML_NAMESPACE_TCD && aLocalName.equalsAscii( "conversion-type" ))
nConversionType = GetConversionTypeFromText( aValue );
}
@@ -414,7 +411,7 @@ sal_uInt32 ConvDicXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClas
_GetNamespaceMap().GetNameByKey( XML_NAMESPACE_TCD ) );
AddAttributeASCII( XML_NAMESPACE_TCD, "package", "org.openoffice.Office" );
- OUString aIsoLang( ConvertLanguageToIsoString( rDic.nLanguage ) );
+ OUString aIsoLang( MsLangId::convertLanguageToIsoString( rDic.nLanguage ) );
AddAttribute( XML_NAMESPACE_TCD, "lang", aIsoLang );
OUString aConvType( ConversionTypeToText( rDic.nConversionType ) );
AddAttribute( XML_NAMESPACE_TCD, "conversion-type", aConvType );