Kaydet (Commit) 16476bc1 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oasis (1.5.276); FILE MERGED

2004/04/21 07:27:25 mib 1.5.276.1: - separated attribute lists for <*-properties> elements on import (#i20153#)
- replaced "style:text-backgroubnd-color" with "fo:background-color"
üst 1710005a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: xmlprmap.cxx,v $ * $RCSfile: xmlprmap.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: dvo $ $Date: 2001-07-25 13:55:54 $ * last change: $Author: rt $ $Date: 2004-07-13 08:28:32 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -224,6 +224,7 @@ sal_Bool XMLPropertySetMapper::importXML( ...@@ -224,6 +224,7 @@ sal_Bool XMLPropertySetMapper::importXML(
const sal_Int32 XMLPropertySetMapper::GetEntryIndex( const sal_Int32 XMLPropertySetMapper::GetEntryIndex(
sal_uInt16 nNamespace, sal_uInt16 nNamespace,
const OUString& rStrName, const OUString& rStrName,
sal_uInt32 nPropType,
sal_Int32 nStartAt /* = -1 */ ) const sal_Int32 nStartAt /* = -1 */ ) const
{ {
sal_Int32 nEntries = GetEntryCount(); sal_Int32 nEntries = GetEntryCount();
...@@ -232,7 +233,8 @@ const sal_Int32 XMLPropertySetMapper::GetEntryIndex( ...@@ -232,7 +233,8 @@ const sal_Int32 XMLPropertySetMapper::GetEntryIndex(
do do
{ {
const XMLPropertySetMapperEntry_Impl& rEntry = aMapEntries[nIndex]; const XMLPropertySetMapperEntry_Impl& rEntry = aMapEntries[nIndex];
if( rEntry.nXMLNameSpace == nNamespace && if( (!nPropType || nPropType == rEntry.GetPropType()) &&
rEntry.nXMLNameSpace == nNamespace &&
rStrName == rEntry.sXMLAttributeName ) rStrName == rEntry.sXMLAttributeName )
return nIndex; return nIndex;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment