summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/lnkbase2.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/lnkbase2.cxx
parentffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff)
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index d75252df67c2..4f0aa7382a6b 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -70,7 +70,7 @@ struct ImplBaseLinkData
SotClipboardFormatId nCntntType; // Update Format
// Not Ole-Links
bool bIntrnlLnk; // It is an internal link
- sal_uInt16 nUpdateMode; // UpdateMode
+ SfxLinkUpdateMode nUpdateMode; // UpdateMode
};
struct tDDEType
@@ -86,7 +86,7 @@ struct ImplBaseLinkData
{
ClientType.nCntntType = SotClipboardFormatId::NONE;
ClientType.bIntrnlLnk = false;
- ClientType.nUpdateMode = 0;
+ ClientType.nUpdateMode = SfxLinkUpdateMode::NONE;
DDEType.pItem = NULL;
}
};
@@ -135,7 +135,7 @@ SvBaseLink::SvBaseLink()
-SvBaseLink::SvBaseLink( sal_uInt16 nUpdateMode, SotClipboardFormatId nContentType )
+SvBaseLink::SvBaseLink( SfxLinkUpdateMode nUpdateMode, SotClipboardFormatId nContentType )
: m_bIsReadOnly(false)
{
pImpl = new BaseLink_Impl();
@@ -311,7 +311,7 @@ void SvBaseLink::SetLinkSourceName( const OUString & rLnkNm )
-void SvBaseLink::SetUpdateMode( sal_uInt16 nMode )
+void SvBaseLink::SetUpdateMode( SfxLinkUpdateMode nMode )
{
if( ( OBJECT_CLIENT_SO & nObjType ) &&
pImplData->ClientType.nUpdateMode != nMode )
@@ -357,7 +357,7 @@ bool SvBaseLink::Update()
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() )
+ SfxLinkUpdateMode::ONCALL == GetUpdateMode() && xObj.Is() )
xObj->RemoveAllDataAdvise( this );
return bSuccess;
}
@@ -378,11 +378,11 @@ bool SvBaseLink::Update()
}
-sal_uInt16 SvBaseLink::GetUpdateMode() const
+SfxLinkUpdateMode SvBaseLink::GetUpdateMode() const
{
return ( OBJECT_CLIENT_SO & nObjType )
? pImplData->ClientType.nUpdateMode
- : sal::static_int_cast< sal_uInt16 >( LINKUPDATE_ONCALL );
+ : SfxLinkUpdateMode::ONCALL;
}