diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-05-25 14:48:41 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-25 14:48:41 -0400 |
commit | 2dc20121a8f9fc09b6a39ee8330323463b896c3e (patch) | |
tree | 86b253caa5185183fbfd46dee4ce65e7dd7410c0 /sfx2/source/appl/lnkbase2.cxx | |
parent | add mode-lines here (diff) | |
download | core-2dc20121a8f9fc09b6a39ee8330323463b896c3e.tar.gz core-2dc20121a8f9fc09b6a39ee8330323463b896c3e.zip |
Change the signature of DataChanged in the base class.
This change allows the caller to see if DataChanged operation was
successful or not.
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 0f2488cfe3d5..cc7b31bd1b15 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -330,12 +330,13 @@ sal_Bool SvBaseLink::Update() if( xObj->GetData( aData, sMimeType ) ) { - DataChanged( sMimeType, aData ); + UpdateResult eRes = DataChanged(sMimeType, aData); + bool bSuccess = eRes == SUCCESS; //for manual Updates there is no need to hold the ServerObject if( OBJECT_CLIENT_DDE == nObjType && LINKUPDATE_ONCALL == GetUpdateMode() && xObj.Is() ) xObj->RemoveAllDataAdvise( this ); - return sal_True; + return bSuccess; } if( xObj.Is() ) { @@ -439,7 +440,7 @@ void SvBaseLink::Disconnect() } } -void SvBaseLink::DataChanged( const String &, const ::com::sun::star::uno::Any & ) +SvBaseLink::UpdateResult SvBaseLink::DataChanged( const String &, const ::com::sun::star::uno::Any & ) { switch( nObjType ) { @@ -448,6 +449,7 @@ void SvBaseLink::DataChanged( const String &, const ::com::sun::star::uno::Any & pImplData->DDEType.pItem->Notify(); break; } + return SUCCESS; } void SvBaseLink::Edit( Window* pParent, const Link& rEndEditHdl ) |