summaryrefslogtreecommitdiff
path: root/include/svtools/filectrl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-17 13:53:28 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:40 +0200
commit2d1c78e5335dee23f2ace23c7a90b56be201cd3d (patch)
tree63f9c98fb8ffb588f93a97ba2ca37c471cb18685 /include/svtools/filectrl.hxx
parent442f3b5d77a0b1dd0c8c31d82a205623f3850253 (diff)
convert FILECTRL_ constants to scoped enum
Change-Id: I973265c13f43a7f073bdb53e854f25a84d341b68
Diffstat (limited to 'include/svtools/filectrl.hxx')
-rw-r--r--include/svtools/filectrl.hxx12
1 files changed, 9 insertions, 3 deletions
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<FileControlMode_Internal> : is_typed_flags<FileControlMode_Internal, 0x03> {};
+}
class SVT_DLLPUBLIC FileControl : public vcl::Window