From 921686a827e663199c040f376249de727613751f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 20 Sep 2015 21:21:54 +0200 Subject: convert SC_LINKREFTYPE to scoped enum Change-Id: Ia894548d87390e5170d2b704eac26e34729ebe8e Reviewed-on: https://gerrit.libreoffice.org/18736 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sc/inc/hints.hxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sc/inc') 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; } -- cgit v1.2.3