diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-21 15:41:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-22 17:54:00 +0000 |
commit | 44e20713ebcd3b3ed9a490f54b0b17bd6cd57372 (patch) | |
tree | b5661c56a32c37ee3369c926d35be1662b0afceb /include/tools | |
parent | ef0e063938d1821f362a975ae83c2ab212267b98 (diff) |
Convert RSC_IMAGEBUTTON to scoped enum
Change-Id: Iedb0cfa8678627dbd0445e05524bd26a2c5838a2
Reviewed-on: https://gerrit.libreoffice.org/25258
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/rc.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h index 87c7713935c1..714ea98b5236 100644 --- a/include/tools/rc.h +++ b/include/tools/rc.h @@ -143,9 +143,14 @@ namespace o3tl { #define RSC_DOCKINGWINDOW_FLOATING 0x08 // For "ImageButtons": -#define RSC_IMAGEBUTTON_IMAGE 0x01 -#define RSC_IMAGEBUTTON_SYMBOL 0x02 -#define RSC_IMAGEBUTTON_STATE 0x04 +enum class RscImageButtonFlags { + Image = 0x01, + Symbol = 0x02, + State = 0x04 +}; +namespace o3tl { + template<> struct typed_flags<RscImageButtonFlags> : is_typed_flags<RscImageButtonFlags, 0x07> {}; +} // For "Image": #define RSC_IMAGE_IMAGEBITMAP 0x01 |