diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2002-04-09 10:49:57 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2002-04-09 10:49:57 +0000 |
commit | cbad276c9f6c5a53040e8912ae5ec318328a403c (patch) | |
tree | 9cfa570e0d6ff2bf7090a727c9b8104fdb7518f1 /ucbhelper/source | |
parent | 5dd06208e8d730f50233735489ead4753127ae05 (diff) |
#92347# - Changed return value of all setPropertyValue[s] methods.
Diffstat (limited to 'ucbhelper/source')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 5727915ebd8d..39725ac4ad5a 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -2,9 +2,9 @@ * * $RCSfile: content.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: mav $ $Date: 2002-01-11 18:06:05 $ + * last change: $Author: kso $ $Date: 2002-04-09 11:49:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -607,7 +607,7 @@ Any Content::getPropertyValue( sal_Int32 nPropertyHandle ) } //========================================================================= -void Content::setPropertyValue( const rtl::OUString& rName, +Any Content::setPropertyValue( const rtl::OUString& rName, const Any& rValue ) throw( CommandAbortedException, RuntimeException, Exception ) { @@ -617,11 +617,12 @@ void Content::setPropertyValue( const rtl::OUString& rName, Sequence< Any > aValues( 1 ); aValues.getArray()[ 0 ] = rValue; - setPropertyValues( aNames, aValues ); + Sequence< Any > aErrors = setPropertyValues( aNames, aValues ); + return aErrors.getConstArray()[ 0 ]; } //========================================================================= -void Content::setPropertyValue( const sal_Int32 nPropertyHandle, +Any Content::setPropertyValue( const sal_Int32 nPropertyHandle, const Any& rValue ) throw( CommandAbortedException, RuntimeException, Exception ) { @@ -631,7 +632,8 @@ void Content::setPropertyValue( const sal_Int32 nPropertyHandle, Sequence< Any > aValues( 1 ); aValues.getArray()[ 0 ] = rValue; - setPropertyValues( aHandles, aValues ); + Sequence< Any > aErrors = setPropertyValues( aHandles, aValues ); + return aErrors.getConstArray()[ 0 ]; } //========================================================================= @@ -743,7 +745,7 @@ Reference< XRow > Content::getPropertyValuesInterface( } //========================================================================= -void Content::setPropertyValues( +Sequence< Any > Content::setPropertyValues( const Sequence< rtl::OUString >& rPropertyNames, const Sequence< Any >& rValues ) throw( CommandAbortedException, RuntimeException, Exception ) @@ -783,11 +785,15 @@ void Content::setPropertyValues( aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; - m_xImpl->executeCommand( aCommand ); + Any aResult = m_xImpl->executeCommand( aCommand ); + + Sequence< Any > aErrors; + aResult >>= aErrors; + return aErrors; } //========================================================================= -void Content::setPropertyValues( +Sequence< Any > Content::setPropertyValues( const Sequence< sal_Int32 >& nPropertyHandles, const Sequence< Any >& rValues ) throw( CommandAbortedException, RuntimeException, Exception ) @@ -827,7 +833,11 @@ void Content::setPropertyValues( aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; - m_xImpl->executeCommand( aCommand ); + Any aResult = m_xImpl->executeCommand( aCommand ); + + Sequence< Any > aErrors; + aResult >>= aErrors; + return aErrors; } //========================================================================= |