diff options
author | Christian Lippka <cl@openoffice.org> | 2001-08-10 12:37:45 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-08-10 12:37:45 +0000 |
commit | 51aab89f67b9a384f89ef5f70be9ab59e2948d69 (patch) | |
tree | 243e12dbfca6a5983786555c4725100a14b71ce4 /xmloff/source/chart/PropertyMaps.cxx | |
parent | c57038f9fc747b5f240e44a6c9435fe36141ea7f (diff) |
#90657# always call base class for unhandled special items
Diffstat (limited to 'xmloff/source/chart/PropertyMaps.cxx')
-rw-r--r-- | xmloff/source/chart/PropertyMaps.cxx | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx index 71fc62ccf9eb..f0d55774bbef 100644 --- a/xmloff/source/chart/PropertyMaps.cxx +++ b/xmloff/source/chart/PropertyMaps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: PropertyMaps.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: dvo $ $Date: 2001-06-29 21:07:11 $ + * last change: $Author: cl $ $Date: 2001-08-10 13:37:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -310,10 +310,14 @@ void XMLChartExportPropertyMapper::handleSpecialItem( const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx ) const { + sal_Bool bHandled = sal_False; + sal_Int32 nContextId = maPropMapper->GetEntryContextId( rProperty.mnIndex ); if( nContextId ) { + bHandled = sal_True; + rtl::OUString sAttrName = maPropMapper->GetEntryXMLName( rProperty.mnIndex ); sal_uInt16 nNameSpace = maPropMapper->GetEntryNameSpace( rProperty.mnIndex ); rtl::OUStringBuffer sValueBuffer; @@ -385,7 +389,17 @@ void XMLChartExportPropertyMapper::handleSpecialItem( sValueBuffer.append( mrExport.AddEmbeddedGraphicObject( aURLStr )); } break; + + case XML_SCH_CONTEXT_SPECIAL_NUMBER_FORMAT: + { + // just for import + break; + } + default: + bHandled = sal_False; + break; } + if( sValueBuffer.getLength()) { sValue = sValueBuffer.makeStringAndClear(); @@ -393,7 +407,8 @@ void XMLChartExportPropertyMapper::handleSpecialItem( rAttrList.AddAttribute( sAttrName, msCDATA, sValue ); } } - else + + if( !bHandled ) { // call parent SvXMLExportPropertyMapper::handleSpecialItem( rAttrList, rProperty, rUnitConverter, rNamespaceMap, pProperties, nIdx ); @@ -522,7 +537,10 @@ sal_Bool XMLChartImportPropertyMapper::handleSpecialItem( break; } } - else + + + // if we didn't handle it, the parent should + if( !bRet ) { // call parent bRet = SvXMLImportPropertyMapper::handleSpecialItem( rProperty, rProperties, rValue, rUnitConverter, rNamespaceMap ); |