diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 11:57:05 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 11:57:05 +0000 |
commit | 180ee64594e61a1d67d8556581f80bc57f048074 (patch) | |
tree | 0e6805ebcd094993b5c519181ba9269e82f720cb /chart2/source | |
parent | b0207bb1bd052756173eb28501c7824eba6a70f9 (diff) |
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
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/tools/PropertyHelper.cxx | 33 |
1 files changed, 1 insertions, 32 deletions
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, |