diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-30 20:15:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-31 06:39:52 +0000 |
commit | 59dbfecedb76ecf2ff8d464c144a0adf85eb3766 (patch) | |
tree | 4a37830b0919e2bb6ab94e2e874654318c495129 /include/tools | |
parent | 5ca16c7b3153395d9107f84d366c796a22930756 (diff) |
Convert RSC_TOOLBOXITEM to scoped enum
Change-Id: Ic90b6950016417d5f57963ab69fd20905a943bb7
Reviewed-on: https://gerrit.libreoffice.org/25683
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 | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h index 90e593a608ab..4566203adeda 100644 --- a/include/tools/rc.h +++ b/include/tools/rc.h @@ -118,18 +118,20 @@ namespace o3tl { } // For "ToolBoxItem" resources: -#define RSC_TOOLBOXITEM_ID 0x0001 -#define RSC_TOOLBOXITEM_TYPE 0x0002 -#define RSC_TOOLBOXITEM_STATUS 0x0004 -#define RSC_TOOLBOXITEM_HELPID 0x0008 -#define RSC_TOOLBOXITEM_TEXT 0x0010 -#define RSC_TOOLBOXITEM_HELPTEXT 0x0020 -#define RSC_TOOLBOXITEM_BITMAP 0x0040 -#define RSC_TOOLBOXITEM_IMAGE 0x0080 -#define RSC_TOOLBOXITEM_DISABLE 0x0100 -#define RSC_TOOLBOXITEM_STATE 0x0200 -#define RSC_TOOLBOXITEM_HIDE 0x0400 -#define RSC_TOOLBOXITEM_COMMAND 0x0800 +enum class RscToolboxItemFlags { + Id = 0x0001, + Type = 0x0002, + Status = 0x0004, + HelpId = 0x0008, + Text = 0x0010, + Bitmap = 0x0040, + Disable = 0x0100, + Hide = 0x0400, + Command = 0x0800 +}; +namespace o3tl { + template<> struct typed_flags<RscToolboxItemFlags> : is_typed_flags<RscToolboxItemFlags, 0xd5f> {}; +} // For "ToolBox" resources: enum class RscToolboxFlags { |