summaryrefslogtreecommitdiff
path: root/sc/inc/hints.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-20 21:21:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-21 08:17:50 +0000
commit921686a827e663199c040f376249de727613751f (patch)
treee6c7f5c8440f147f5f9c2640dc17e684e1083799 /sc/inc/hints.hxx
parent588e1f97577b53a0131fa24c3cdfdf158b27efa7 (diff)
convert SC_LINKREFTYPE to scoped enum
Change-Id: Ia894548d87390e5170d2b704eac26e34729ebe8e Reviewed-on: https://gerrit.libreoffice.org/18736 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc/hints.hxx')
-rw-r--r--sc/inc/hints.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx
index cedbb00fb6c0..f219973ae622 100644
--- a/sc/inc/hints.hxx
+++ b/sc/inc/hints.hxx
@@ -81,15 +81,13 @@ public:
};
//! move ScLinkRefreshedHint to a different file?
-
-#define SC_LINKREFTYPE_NONE 0
-#define SC_LINKREFTYPE_SHEET 1
-#define SC_LINKREFTYPE_AREA 2
-#define SC_LINKREFTYPE_DDE 3
+enum class ScLinkRefType {
+ NONE, SHEET, AREA, DDE
+};
class ScLinkRefreshedHint : public SfxHint
{
- sal_uInt16 nLinkType; // SC_LINKREFTYPE_...
+ ScLinkRefType nLinkType;
OUString aUrl; // used for sheet links
OUString aDdeAppl; // used for dde links:
OUString aDdeTopic;
@@ -106,7 +104,7 @@ public:
void SetDdeLink( const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM );
void SetAreaLink( const ScAddress& rPos );
- sal_uInt16 GetLinkType() const { return nLinkType; }
+ ScLinkRefType GetLinkType() const { return nLinkType; }
const OUString& GetUrl() const { return aUrl; }
const OUString& GetDdeAppl() const { return aDdeAppl; }
const OUString& GetDdeTopic() const { return aDdeTopic; }