summaryrefslogtreecommitdiff
path: root/include/sfx2/lnkbase.hxx
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 /include/sfx2/lnkbase.hxx
parentffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff)
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'include/sfx2/lnkbase.hxx')
-rw-r--r--include/sfx2/lnkbase.hxx23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/sfx2/lnkbase.hxx b/include/sfx2/lnkbase.hxx
index 0613a297246d..4b04b34eb4a9 100644
--- a/include/sfx2/lnkbase.hxx
+++ b/include/sfx2/lnkbase.hxx
@@ -32,6 +32,13 @@ namespace com { namespace sun { namespace star { namespace uno
class Any;
}}}}
+enum class SfxLinkUpdateMode {
+ NONE = 0,
+ // Ole2 compatible and persistent
+ ALWAYS = 1,
+ ONCALL = 3
+};
+
namespace sfx2
{
@@ -54,14 +61,6 @@ class FileDialogHelper;
#define OBJECT_CLIENT_GRF 0x91
#define OBJECT_CLIENT_OLE 0x92 // embedded link
-enum sfxlink {
- // Ole2 compatibel and persistent
- LINKUPDATE_ALWAYS = 1,
- LINKUPDATE_ONCALL = 3,
-
- LINKUPDATE_END // dummy!
-};
-
struct BaseLink_Impl;
class SFX2_DLLPUBLIC SvBaseLink : public SvRefBase
@@ -96,7 +95,7 @@ protected:
m_xInputStreamToLoadFrom;
SvBaseLink();
- SvBaseLink( sal_uInt16 nLinkType, SotClipboardFormatId nContentType = SotClipboardFormatId::STRING );
+ SvBaseLink( SfxLinkUpdateMode nLinkType, SotClipboardFormatId nContentType = SotClipboardFormatId::STRING );
virtual ~SvBaseLink();
void _GetRealObject( bool bConnect = true );
@@ -134,14 +133,14 @@ public:
virtual UpdateResult DataChanged(
const OUString & rMimeType, const ::com::sun::star::uno::Any & rValue );
- void SetUpdateMode( sal_uInt16 );
- sal_uInt16 GetUpdateMode() const;
+ void SetUpdateMode( SfxLinkUpdateMode );
+ SfxLinkUpdateMode GetUpdateMode() const;
SotClipboardFormatId GetContentType() const;
bool SetContentType( SotClipboardFormatId nType );
LinkManager* GetLinkManager();
const LinkManager* GetLinkManager() const;
- void SetLinkManager( LinkManager* _pMgr );
+ void SetLinkManager( LinkManager* _pMgr );
bool Update();
void Disconnect();