diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/inc/sot/stg.hxx | 1 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 27 |
2 files changed, 0 insertions, 28 deletions
diff --git a/sot/inc/sot/stg.hxx b/sot/inc/sot/stg.hxx index 711dce29cc77..98a09cecad50 100644 --- a/sot/inc/sot/stg.hxx +++ b/sot/inc/sot/stg.hxx @@ -351,7 +351,6 @@ public: virtual sal_Bool ValidateMode( StreamMode ) const; virtual const SvStream* GetSvStream() const; virtual sal_Bool Equals( const BaseStorage& rStream ) const; - sal_Bool SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue ); sal_Bool GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue ); UCBStorageElement_Impl* FindElement_Impl( const String& rName ) const; diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index c0a0021fe024..ff081f2bf70d 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -3253,31 +3253,4 @@ String UCBStorage::CreateLinkFile( const String& rName ) return String(); } -sal_Bool UCBStorage::SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue ) -{ - if ( rName.CompareToAscii("Title") == COMPARE_EQUAL ) - return sal_False; - - if ( rName.CompareToAscii("MediaType") == COMPARE_EQUAL ) - { - ::rtl::OUString aTmp; - rValue >>= aTmp; - pImp->m_aContentType = aTmp; - } - - try - { - if ( pImp->GetContent() ) - { - pImp->m_pContent->setPropertyValue( rName, rValue ); - return sal_True; - } - } - catch (const Exception&) - { - } - - return sal_False; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |