From 2d1c78e5335dee23f2ace23c7a90b56be201cd3d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Apr 2015 13:53:28 +0200 Subject: convert FILECTRL_ constants to scoped enum Change-Id: I973265c13f43a7f073bdb53e854f25a84d341b68 --- include/svtools/filectrl.hxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/svtools/filectrl.hxx b/include/svtools/filectrl.hxx index eb9872b1e65e..53486c0e4d35 100644 --- a/include/svtools/filectrl.hxx +++ b/include/svtools/filectrl.hxx @@ -40,9 +40,15 @@ namespace o3tl } // Flags for internal use of FileControl -typedef sal_uInt16 FileControlMode_Internal; -#define FILECTRL_INRESIZE ((sal_uInt16)0x0001) -#define FILECTRL_ORIGINALBUTTONTEXT ((sal_uInt16)0x0002) +enum class FileControlMode_Internal +{ + INRESIZE = 0x0001, + ORIGINALBUTTONTEXT = 0x0002, +}; +namespace o3tl +{ + template<> struct typed_flags : is_typed_flags {}; +} class SVT_DLLPUBLIC FileControl : public vcl::Window -- cgit