diff options
Diffstat (limited to 'sfx2/source/appl/impldde.cxx')
-rw-r--r-- | sfx2/source/appl/impldde.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx index 1d9617636c48..00efd456bd4e 100644 --- a/sfx2/source/appl/impldde.cxx +++ b/sfx2/source/appl/impldde.cxx @@ -186,13 +186,13 @@ bool SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/, bool SvDDEObject::Connect( SvBaseLink * pSvLink ) { - sal_uInt16 nLinkType = pSvLink->GetUpdateMode(); + SfxLinkUpdateMode nLinkType = pSvLink->GetUpdateMode(); if( pConnection ) // Connection is already made { // well, then just add it as dependent AddDataAdvise( pSvLink, SotExchange::GetFormatMimeType( pSvLink->GetContentType()), - LINKUPDATE_ONCALL == nLinkType + SfxLinkUpdateMode::ONCALL == nLinkType ? ADVISEMODE_ONLYONCE : 0 ); AddConnectAdvise( pSvLink ); @@ -230,7 +230,7 @@ bool SvDDEObject::Connect( SvBaseLink * pSvLink ) nError = DDELINK_ERROR_APP; } - if( LINKUPDATE_ALWAYS == nLinkType && !pLink && !pConnection->GetError() ) + if( SfxLinkUpdateMode::ALWAYS == nLinkType && !pLink && !pConnection->GetError() ) { // Setting up Hot Link, Data will be available at some point later on pLink = new DdeHotLink( *pConnection, sItem ); @@ -245,7 +245,7 @@ bool SvDDEObject::Connect( SvBaseLink * pSvLink ) AddDataAdvise( pSvLink, SotExchange::GetFormatMimeType( pSvLink->GetContentType()), - LINKUPDATE_ONCALL == nLinkType + SfxLinkUpdateMode::ONCALL == nLinkType ? ADVISEMODE_ONLYONCE : 0 ); AddConnectAdvise( pSvLink ); |