diff options
Diffstat (limited to 'chart2/source/tools/OPropertySet.cxx')
-rw-r--r-- | chart2/source/tools/OPropertySet.cxx | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/chart2/source/tools/OPropertySet.cxx b/chart2/source/tools/OPropertySet.cxx index d80e284cdfae..e44816954340 100644 --- a/chart2/source/tools/OPropertySet.cxx +++ b/chart2/source/tools/OPropertySet.cxx @@ -40,7 +40,6 @@ using namespace ::com::sun::star; using ::com::sun::star::style::XStyleSupplier; -// using ::com::sun::star::beans::XFastPropertyState; using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; @@ -73,11 +72,9 @@ OPropertySet::OPropertySet( const OPropertySet & rOther, ::osl::Mutex & par_rMut m_rMutex( par_rMutex ), m_bSetNewValuesExplicitlyEvenIfTheyEqualDefault(false) { - // /-- MutexGuard aGuard( m_rMutex ); if( rOther.m_pImplProperties.get()) m_pImplProperties.reset( new impl::ImplOPropertySet( * rOther.m_pImplProperties.get())); - // \-- } void OPropertySet::SetNewValuesExplicitlyEvenIfTheyEqualDefault() @@ -98,10 +95,6 @@ Any SAL_CALL OPropertySet::queryInterface( const uno::Type& aType ) { return ::cppu::queryInterface( aType, -// static_cast< uno::XInterface * >( -// static_cast< uno::XWeak * >( this )), -// static_cast< uno::XWeak * >( this ), -// static_cast< lang::XServiceInfo * >( this ), static_cast< lang::XTypeProvider * >( this ), static_cast< beans::XPropertySet * >( this ), static_cast< beans::XMultiPropertySet * >( this ), @@ -109,45 +102,8 @@ Any SAL_CALL OPropertySet::queryInterface( const uno::Type& aType ) static_cast< beans::XPropertyState * >( this ), static_cast< beans::XMultiPropertyStates * >( this ), static_cast< XStyleSupplier * >( this ) ); -// static_cast< XFastPropertyState * >( this ) ); } -// void SAL_CALL OPropertySet::acquire() throw () -// { -// OWeakObject::acquire(); -// } - -// void SAL_CALL OPropertySet::release() throw () -// { -// OWeakObject::release(); -// } - - -// ____ XServiceInfo ____ -// OUString SAL_CALL -// OPropertySet::getImplementationName() -// throw (uno::RuntimeException) -// { -// return OUString( RTL_CONSTASCII_USTRINGPARAM( "property::OPropertySet" )); -// } - -// sal_Bool SAL_CALL -// OPropertySet::supportsService( const OUString& ServiceName ) -// throw (uno::RuntimeException) -// { -// return ( 0 == ServiceName.reverseCompareToAsciiL( -// RTL_CONSTASCII_STRINGPARAM( "com.sun.star.beans.PropertySet" ))); -// } - -// Sequence< OUString > SAL_CALL -// OPropertySet::getSupportedServiceNames() -// throw (uno::RuntimeException) -// { -// Sequence< OUString > aServiceNames( 1 ); -// aServiceNames[ 0 ] = OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.beans.PropertySet" )); -// return aServiceNames; -// } - #define LCL_PROP_CPPUTYPE(t) (::getCppuType( reinterpret_cast< const Reference<t> *>(0))) // // ____ XTypeProvider ____ @@ -157,15 +113,12 @@ Sequence< uno::Type > SAL_CALL { static Sequence< uno::Type > aTypeList; - // /-- MutexGuard aGuard( m_rMutex ); if( aTypeList.getLength() == 0 ) { ::std::vector< uno::Type > aTypes; -// aTypes.push_back( LCL_PROP_CPPUTYPE( uno::XWeak )); -// aTypes.push_back( LCL_PROP_CPPUTYPE( lang::XServiceInfo )); aTypes.push_back( LCL_PROP_CPPUTYPE( lang::XTypeProvider )); aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XPropertySet )); aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XMultiPropertySet )); @@ -173,13 +126,11 @@ Sequence< uno::Type > SAL_CALL aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XPropertyState )); aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XMultiPropertyStates )); aTypes.push_back( LCL_PROP_CPPUTYPE( XStyleSupplier )); -// aTypes.push_back( LCL_PROP_CPPUTYPE( XFastPropertyState )); aTypeList = ::chart::ContainerHelper::ContainerToSequence( aTypes ); } return aTypeList; - // \-- } Sequence< sal_Int8 > SAL_CALL @@ -370,7 +321,6 @@ void SAL_CALL OPropertySet::getFastPropertyValue { if( ! m_pImplProperties->GetPropertyValueByHandle( rValue, nHandle )) { -// OSL_TRACE( "OPropertySet: asking style for property" ); // property was not set -> try style uno::Reference< beans::XFastPropertySet > xStylePropSet( m_pImplProperties->GetStyle(), uno::UNO_QUERY ); if( xStylePropSet.is() ) @@ -429,7 +379,6 @@ void SAL_CALL OPropertySet::getFastPropertyValue } else { -// OSL_TRACE( "OPropertySet: no style => getting default for property" ); // there is no style (or the style does not support XFastPropertySet) // => take the default value try @@ -467,41 +416,6 @@ void SAL_CALL OPropertySet::setStyle( const Reference< style::XStyle >& xStyle ) 0 ); } -// ____ XFastPropertyState ____ -// beans::PropertyState OPropertySet::SAL_CALL getFastPropertyState( sal_Int32 nHandle ) -// throw (beans::UnknownPropertyException, -// uno::RuntimeException) -// { -// return m_pImplProperties->GetPropertyStateByHandle( nHandle ); -// } - -// uno::Sequence< beans::PropertyState > OPropertySet::SAL_CALL getFastPropertyStates( -// const uno::Sequence< sal_Int32 >& aHandles ) -// throw (beans::UnknownPropertyException, -// uno::RuntimeException) -// { -// ::std::vector< sal_Int32 > aHandleVec( -// aHandles.getConstArray(), -// aHandles.getConstArray() + aHandles.getLength() ); - -// return m_pImplProperties->GetPropertyStatesByHandle( aHandleVec ); -// } - -// void OPropertySet::SAL_CALL setFastPropertyToDefault( sal_Int32 nHandle ) -// throw (beans::UnknownPropertyException, -// uno::RuntimeException) -// { -// m_pImplProperties->SetPropertyToDefault( nHandle ); -// } - -// uno::Any OPropertySet::SAL_CALL getFastPropertyDefault( sal_Int32 nHandle ) -// throw (beans::UnknownPropertyException, -// lang::WrappedTargetException, -// uno::RuntimeException) -// { -// return GetDefaultValue( nHandle ); -// } - // ____ XMultiPropertySet ____ void SAL_CALL OPropertySet::setPropertyValues( const Sequence< OUString >& PropertyNames, const Sequence< Any >& Values ) |