diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-14 19:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-16 06:42:47 +0000 |
commit | 743cdf36d128bc1d0ea3315675b0bb5f85388099 (patch) | |
tree | e606586a0d8e0a38edf51912f2142c1a52bc18b4 /include | |
parent | 1938fd869b8226af00925caa7ac991618d35ee0c (diff) |
convert RSC_MENU to scoped enum
Change-Id: Ice3784b4168738550d2c0f5ee6da1bd49d15becf
Reviewed-on: https://gerrit.libreoffice.org/24997
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/rc.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h index 211eb253faac..6b5c90065116 100644 --- a/include/tools/rc.h +++ b/include/tools/rc.h @@ -53,6 +53,7 @@ namespace o3tl { #define WINDOW_HELPID 0x4000 // For "WorkWindow" resources: + #define WORKWIN_SHOWNORMAL 0 #define WORKWIN_SHOWMINIMIZED 1 #define WORKWIN_SHOWMAXIMIZED 2 @@ -61,9 +62,14 @@ namespace o3tl { #define RSC_FIXEDIMAGE_IMAGE 0x0001 // For all menu resources: -#define RSC_MENU_ITEMS 0x01 -#define RSC_MENU_TEXT 0x02 -#define RSC_MENU_DEFAULTITEMID 0x04 +enum class RscMenu { + Items = 0x01, + Text = 0x02, + DefaultItemId = 0x04 +}; +namespace o3tl { + template<> struct typed_flags<RscMenu> : is_typed_flags<RscMenu, 0x07> {}; +} // "MenuItem" resource options: #define RSC_MENUITEM_SEPARATOR 0x001 |