From 180ee64594e61a1d67d8556581f80bc57f048074 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 16 Jun 2008 11:57:05 +0000 Subject: INTEGRATION: CWS rptchart02 (1.5.58); FILE MERGED 2008/04/16 06:36:05 oj 1.5.58.2: RESYNC: (1.5-1.6); FILE MERGED 2008/04/15 12:50:19 oj 1.5.58.1: use comphelper copyProperties --- chart2/source/tools/PropertyHelper.cxx | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'chart2/source/tools') diff --git a/chart2/source/tools/PropertyHelper.cxx b/chart2/source/tools/PropertyHelper.cxx index e332a329f7ca..f5f59c4c405a 100644 --- a/chart2/source/tools/PropertyHelper.cxx +++ b/chart2/source/tools/PropertyHelper.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PropertyHelper.cxx,v $ - * $Revision: 1.6 $ + * $Revision: 1.7 $ * * This file is part of OpenOffice.org. * @@ -191,37 +191,6 @@ namespace chart namespace PropertyHelper { -void copyProperties( - const Reference< XPropertySet > & xSource, - const Reference< XPropertySet > & xDestination ) -{ - if( ! (xSource.is() && xDestination.is())) - return; - - try - { - Reference< XPropertySetInfo > xSrcInfo( xSource->getPropertySetInfo(), uno::UNO_QUERY_THROW ); - Reference< XPropertySetInfo > xDestInfo( xDestination->getPropertySetInfo(), uno::UNO_QUERY_THROW ); - Sequence< Property > aProperties( xSrcInfo->getProperties()); - const sal_Int32 nLength = aProperties.getLength(); - for( sal_Int32 i = 0; i < nLength; ++i ) - { - OUString aName( aProperties[i].Name); - if( xDestInfo->hasPropertyByName( aName )) - { - Property aProp( xDestInfo->getPropertyByName( aName )); - if( (aProp.Attributes & PropertyAttribute::READONLY) == 0 ) - xDestination->setPropertyValue( - aName, xSource->getPropertyValue( aName )); - } - } - } - catch( const uno::Exception & ex ) - { - ASSERT_EXCEPTION( ex ); - } -} - OUString addLineDashUniqueNameToTable( const Any & rValue, const Reference< lang::XMultiServiceFactory > & xFact, -- cgit