diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-17 13:07:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-22 10:28:39 +0200 |
commit | 442f3b5d77a0b1dd0c8c31d82a205623f3850253 (patch) | |
tree | e67db8a6966aa6c4160068112bc6a0eeab203d8e /include/svtools/filectrl.hxx | |
parent | ed54799117078181eed664c478671f7566871fe5 (diff) |
convert FILECTRL_ constant to scoped enum
Change-Id: I171dc1702cc1851962b22072ea62d73ac142504e
Diffstat (limited to 'include/svtools/filectrl.hxx')
-rw-r--r-- | include/svtools/filectrl.hxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/svtools/filectrl.hxx b/include/svtools/filectrl.hxx index 04e6e0a2819c..eb9872b1e65e 100644 --- a/include/svtools/filectrl.hxx +++ b/include/svtools/filectrl.hxx @@ -29,9 +29,15 @@ #define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?! // Flags for FileControl -typedef sal_uInt16 FileControlMode; -#define FILECTRL_RESIZEBUTTONBYPATHLEN ((sal_uInt16)0x0001)//if this is set, the button will become small as soon as the Text in the Edit Field is to long to be shown completely - +enum class FileControlMode +{ + NONE = 0x00, + RESIZEBUTTONBYPATHLEN = 0x01, //if this is set, the button will become small as soon as the Text in the Edit Field is to long to be shown completely +}; +namespace o3tl +{ + template<> struct typed_flags<FileControlMode> : is_typed_flags<FileControlMode, 0x01> {}; +} // Flags for internal use of FileControl typedef sal_uInt16 FileControlMode_Internal; @@ -64,7 +70,7 @@ protected: DECL_DLLPRIVATE_LINK( ButtonHdl, void* ); public: - FileControl( vcl::Window* pParent, WinBits nStyle, FileControlMode = 0 ); + FileControl( vcl::Window* pParent, WinBits nStyle, FileControlMode = FileControlMode::NONE ); virtual ~FileControl(); Edit& GetEdit() { return maEdit; } |