Tag: cws_src680_rpt23fix02
User: oj      
Date: 2007-07-25 09:36:30+0000
Modified:
   dba/reportdesign/source/core/api/Shape.cxx

Log:
 #i79963# check for empty prop name

File Changes:

Directory: /dba/reportdesign/source/core/api/
=============================================

File [changed]: Shape.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/core/api/Shape.cxx?r1=1.2&r2=1.2.4.1
Delta lines:  +11 -11
---------------------
--- Shape.cxx   2007-07-09 11:56:14+0000        1.2
+++ Shape.cxx   2007-07-25 09:36:27+0000        1.2.4.1
@@ -257,40 +257,40 @@
 void SAL_CALL OShape::addPropertyChangeListener( const ::rtl::OUString& 
aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& 
xListener ) throw (beans::UnknownPropertyException, 
lang::WrappedTargetException, uno::RuntimeException)
 {
     getInfoHelper();
-    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY )
+    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY || 
!aPropertyName.getLength() )
         m_aProps.aComponent.m_xProperty->addPropertyChangeListener( 
aPropertyName, xListener);
     // can be in both
-    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY )
+    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY || 
!aPropertyName.getLength() )
        ShapePropertySet::addPropertyChangeListener( aPropertyName, xListener );
 }
 // 
-----------------------------------------------------------------------------
 void SAL_CALL OShape::removePropertyChangeListener( const ::rtl::OUString& 
aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& 
aListener ) throw (beans::UnknownPropertyException, 
lang::WrappedTargetException, uno::RuntimeException)
 {
     getInfoHelper();
-    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY )
+    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY || 
!aPropertyName.getLength() )
         m_aProps.aComponent.m_xProperty->removePropertyChangeListener( 
aPropertyName, aListener );
     // can be in both
-    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY )
+    if( m_pAggHelper->classifyProperty(aPropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY || 
!aPropertyName.getLength() )
            ShapePropertySet::removePropertyChangeListener( aPropertyName, 
aListener );
 }
 // 
-----------------------------------------------------------------------------
 void SAL_CALL OShape::addVetoableChangeListener( const ::rtl::OUString& 
PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener 
) throw (beans::UnknownPropertyException, lang::WrappedTargetException, 
uno::RuntimeException)
 {
     getInfoHelper();
-    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY )
+    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY || 
!PropertyName.getLength() )
         m_aProps.aComponent.m_xProperty->addVetoableChangeListener( 
PropertyName, aListener );
     // can be in both
-    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY )
+    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY || 
!PropertyName.getLength() )
        ShapePropertySet::addVetoableChangeListener( PropertyName, aListener );
 }
 // 
-----------------------------------------------------------------------------
 void SAL_CALL OShape::removeVetoableChangeListener( const ::rtl::OUString& 
PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener 
) throw (beans::UnknownPropertyException, lang::WrappedTargetException, 
uno::RuntimeException)
 {
     getInfoHelper();
-    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY )
+    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::AGGREGATE_PROPERTY || 
!PropertyName.getLength() )
         m_aProps.aComponent.m_xProperty->removeVetoableChangeListener( 
PropertyName, aListener );
     // can be in both
-    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY )
+    if( m_pAggHelper->classifyProperty(PropertyName) == 
OPropertyArrayAggregationHelper::DELEGATOR_PROPERTY || 
!PropertyName.getLength() )
        ShapePropertySet::removeVetoableChangeListener( PropertyName, aListener 
);
 }
 // 
-----------------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to