summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/ddefld.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 /sw/source/core/fields/ddefld.cxx
parentffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff)
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sw/source/core/fields/ddefld.cxx')
-rw-r--r--sw/source/core/fields/ddefld.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/fields/ddefld.cxx b/sw/source/core/fields/ddefld.cxx
index d43a2b352e5d..9a2e0b315618 100644
--- a/sw/source/core/fields/ddefld.cxx
+++ b/sw/source/core/fields/ddefld.cxx
@@ -43,7 +43,7 @@ class SwIntrnlRefLink : public SwBaseLink
{
SwDDEFieldType& rFldType;
public:
- SwIntrnlRefLink( SwDDEFieldType& rType, sal_uInt16 nUpdateType, SotClipboardFormatId nFmt )
+ SwIntrnlRefLink( SwDDEFieldType& rType, SfxLinkUpdateMode nUpdateType, SotClipboardFormatId nFmt )
: SwBaseLink( nUpdateType, nFmt ),
rFldType( rType )
{}
@@ -228,7 +228,7 @@ bool SwIntrnlRefLink::IsInRange( sal_uLong nSttNd, sal_uLong nEndNd,
}
SwDDEFieldType::SwDDEFieldType(const OUString& rName,
- const OUString& rCmd, sal_uInt16 nUpdateType )
+ const OUString& rCmd, SfxLinkUpdateMode nUpdateType )
: SwFieldType( RES_DDEFLD ),
aName( rName ), pDoc( 0 ), nRefCnt( 0 )
{
@@ -319,7 +319,7 @@ bool SwDDEFieldType::QueryValue( uno::Any& rVal, sal_uInt16 nWhichId ) const
case FIELD_PROP_PAR4: nPart = 1; break;
case FIELD_PROP_SUBTYPE: nPart = 0; break;
case FIELD_PROP_BOOL1:
- rVal <<= GetType() == sfx2::LINKUPDATE_ALWAYS;
+ rVal <<= GetType() == SfxLinkUpdateMode::ALWAYS;
break;
case FIELD_PROP_PAR5:
rVal <<= aExpansion;
@@ -341,9 +341,9 @@ bool SwDDEFieldType::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
case FIELD_PROP_PAR4: nPart = 1; break;
case FIELD_PROP_SUBTYPE: nPart = 0; break;
case FIELD_PROP_BOOL1:
- SetType( static_cast<sal_uInt16>(*(sal_Bool*)rVal.getValue() ?
- sfx2::LINKUPDATE_ALWAYS :
- sfx2::LINKUPDATE_ONCALL ) );
+ SetType( *(sal_Bool*)rVal.getValue() ?
+ SfxLinkUpdateMode::ALWAYS :
+ SfxLinkUpdateMode::ONCALL );
break;
case FIELD_PROP_PAR5:
rVal >>= aExpansion;