summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/impldde.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-23 14:23:01 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 09:36:57 +0200
commit23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (patch)
tree2046f70f5d2f47141267d47c192998228e8d41c2 /sfx2/source/appl/impldde.cxx
parentffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff)
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sfx2/source/appl/impldde.cxx')
-rw-r--r--sfx2/source/appl/impldde.cxx8
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 );