diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-23 14:23:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 09:36:57 +0200 |
commit | 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (patch) | |
tree | 2046f70f5d2f47141267d47c192998228e8d41c2 /sw/inc | |
parent | ffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff) |
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ddefld.hxx | 6 | ||||
-rw-r--r-- | sw/inc/section.hxx | 4 | ||||
-rw-r--r-- | sw/inc/swbaslnk.hxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/ddefld.hxx b/sw/inc/ddefld.hxx index 4417c0e069e2..b4f5bedef4c8 100644 --- a/sw/inc/ddefld.hxx +++ b/sw/inc/ddefld.hxx @@ -42,7 +42,7 @@ class SW_DLLPUBLIC SwDDEFieldType : public SwFieldType public: SwDDEFieldType( const OUString& rName, const OUString& rCmd, - sal_uInt16 = sfx2::LINKUPDATE_ONCALL ); + SfxLinkUpdateMode = SfxLinkUpdateMode::ONCALL ); virtual ~SwDDEFieldType(); OUString GetExpansion() const { return aExpansion; } @@ -58,8 +58,8 @@ public: OUString GetCmd() const; void SetCmd( const OUString& aStr ); - sal_uInt16 GetType() const { return refLink->GetUpdateMode(); } - void SetType( sal_uInt16 nType ) { refLink->SetUpdateMode( nType ); } + SfxLinkUpdateMode GetType() const { return refLink->GetUpdateMode(); } + void SetType( SfxLinkUpdateMode nType ) { refLink->SetUpdateMode( nType ); } bool IsDeleted() const { return bDeleted; } void SetDeleted( bool b ) { bDeleted = b; } diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index ad89b4bc4291..70b212827e58 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -223,8 +223,8 @@ public: bool IsServer() const { return m_RefObj.Is(); } // Methods for linked ranges. - sal_uInt16 GetUpdateType() const { return m_RefLink->GetUpdateMode(); } - void SetUpdateType(sal_uInt16 const nType ) + SfxLinkUpdateMode GetUpdateType() const { return m_RefLink->GetUpdateMode(); } + void SetUpdateType(SfxLinkUpdateMode nType ) { m_RefLink->SetUpdateMode(nType); } bool IsConnected() const { return m_RefLink.Is(); } diff --git a/sw/inc/swbaslnk.hxx b/sw/inc/swbaslnk.hxx index ecb83af8b5b9..8da7be7bd1bb 100644 --- a/sw/inc/swbaslnk.hxx +++ b/sw/inc/swbaslnk.hxx @@ -42,7 +42,7 @@ protected: public: TYPEINFO_OVERRIDE(); - SwBaseLink( sal_uInt16 nMode, SotClipboardFormatId nFormat, SwCntntNode* pNode = 0 ) + SwBaseLink( SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwCntntNode* pNode = 0 ) : ::sfx2::SvBaseLink( nMode, nFormat ), pCntntNode( pNode ), bSwapIn( false ), bNoDataFlag( false ), bIgnoreDataChanged( false ), m_pReReadThread(0) |