summaryrefslogtreecommitdiffstats
path: root/transex3
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-05-11 08:12:34 +0000
committerKurt Zenker <kz@openoffice.org>2007-05-11 08:12:34 +0000
commit9ad3295b3c7ccd5e1b0f07dd3f071e61d526b391 (patch)
treedc4ec4ccffd70b28a7ae588b32b59a0257a4b848 /transex3
parentINTEGRATION: CWS gh13 (1.5.38); FILE MERGED (diff)
downloadcore-9ad3295b3c7ccd5e1b0f07dd3f071e61d526b391.tar.gz
core-9ad3295b3c7ccd5e1b0f07dd3f071e61d526b391.zip
INTEGRATION: CWS gh13 (1.18.14); FILE MERGED
2007/05/03 09:54:40 gh 1.18.14.1: do not check external links for equality
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/tagtest.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/transex3/source/tagtest.cxx b/transex3/source/tagtest.cxx
index 694154f3bb5f..592a0cc4a3a7 100644
--- a/transex3/source/tagtest.cxx
+++ b/transex3/source/tagtest.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tagtest.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: obo $ $Date: 2006-10-11 09:55:35 $
+ * last change: $Author: kz $ $Date: 2007-05-11 09:12:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -429,10 +429,19 @@ BOOL TokenInfo::IsPropertyValueValid( const ByteString &aName, const String &aVa
return TRUE;
}
-BOOL TokenInfo::IsPropertyInvariant( const ByteString &aName ) const
+BOOL TokenInfo::IsPropertyInvariant( const ByteString &aName, const String &aValue ) const
{
if ( aTagName.EqualsAscii( "link" ) && aName.Equals( "name" ) )
return FALSE;
+ if ( aTagName.EqualsAscii( "link" ) && aName.Equals( "href" ) )
+ { // check for external reference
+ if ( aValue.Copy( 0, 5 ).EqualsIgnoreCaseAscii( "http:" )
+ || aValue.Copy( 0, 6 ).EqualsIgnoreCaseAscii( "https:" )
+ || aValue.Copy( 0, 4 ).EqualsIgnoreCaseAscii( "ftp:" ) )
+ return FALSE;
+ else
+ return TRUE;
+ }
return TRUE;
}
@@ -472,7 +481,7 @@ BOOL TokenInfo::MatchesTranslation( TokenInfo& rInfo, BOOL bGenErrors, ParserMes
{
if ( IsPropertyRelevant( iProp->first, iProp->second ) || IsPropertyRelevant( iProp->first, rInfo.aProperties.find( iProp->first )->second ) )
{
- if ( IsPropertyInvariant( iProp->first ) )
+ if ( IsPropertyInvariant( iProp->first, iProp->second ) )
{
if ( !rInfo.aProperties.find( iProp->first )->second.Equals( iProp->second ) )
{