diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-14 20:11:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-16 06:42:57 +0000 |
commit | ee6af9f72c298972d7f255aa92f365b33a9e53b2 (patch) | |
tree | d140aea776f65c9778a231920b8e93f0c346022e /include/tools | |
parent | 743cdf36d128bc1d0ea3315675b0bb5f85388099 (diff) |
convert RSC_MENUITEM to scoped enum
Change-Id: I35469edc7d8e5621f016f5eba613474d45711cd3
Reviewed-on: https://gerrit.libreoffice.org/24998
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 | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h index 6b5c90065116..dbf028da388e 100644 --- a/include/tools/rc.h +++ b/include/tools/rc.h @@ -72,18 +72,21 @@ namespace o3tl { } // "MenuItem" resource options: -#define RSC_MENUITEM_SEPARATOR 0x001 -#define RSC_MENUITEM_ID 0x002 -#define RSC_MENUITEM_STATUS 0x004 -#define RSC_MENUITEM_TEXT 0x008 -#define RSC_MENUITEM_BITMAP 0x010 -#define RSC_MENUITEM_HELPTEXT 0x020 -#define RSC_MENUITEM_HELPID 0x040 -#define RSC_MENUITEM_KEYCODE 0x080 -#define RSC_MENUITEM_MENU 0x100 -#define RSC_MENUITEM_CHECKED 0x200 -#define RSC_MENUITEM_DISABLE 0x400 -#define RSC_MENUITEM_COMMAND 0x800 +enum class RscMenuItem { + Separator = 0x001, + Id = 0x002, + Status = 0x004, + Text = 0x008, + Bitmap = 0x010, + HelpText = 0x020, + HelpId = 0x040, + Menu = 0x100, + Disable = 0x400, + Command = 0x800 +}; +namespace o3tl { + template<> struct typed_flags<RscMenuItem> : is_typed_flags<RscMenuItem, 0xd7f> {}; +} // "AccelKey" resource options: #define ACCELITEM_ACCEL 0x01 |