summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-13 14:23:36 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-16 06:41:49 +0000
commit34178c86ce4439e39464084d1a17ac07f330a0e9 (patch)
treef8ce065ecb878607570d4b61bdea3646c4412573 /svx/inc
parent58944b5c6e49023d93f08e9e18eaa47f445dc5f8 (diff)
convert GALLERY_ITEM to scoped enum
Change-Id: I7b3b2b72baf58cd7713418ea36d6a2fe6e0e12e9 Reviewed-on: https://gerrit.libreoffice.org/24962 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/galbrws2.hxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/svx/inc/galbrws2.hxx b/svx/inc/galbrws2.hxx
index c0556f8081f2..dd3d0b038502 100644
--- a/svx/inc/galbrws2.hxx
+++ b/svx/inc/galbrws2.hxx
@@ -53,10 +53,15 @@ enum GalleryBrowserTravel
GALLERYBROWSERTRAVEL_NEXT = 4
};
-
-#define GALLERY_ITEM_THEMENAME 0x00000001
-#define GALLERY_ITEM_TITLE 0x00000002
-#define GALLERY_ITEM_PATH 0x00000004
+enum class GalleryItemFlags {
+ ThemeName = 0x0001,
+ Title = 0x0002,
+ Path = 0x0004
+};
+namespace o3tl
+{
+ template<> struct typed_flags<GalleryItemFlags> : is_typed_flags<GalleryItemFlags, 0x0007> {};
+}
class GalleryToolBox : public ToolBox
@@ -132,7 +137,7 @@ private:
public:
- static OUString GetItemText( const GalleryTheme& rTheme, const SgaObject& rObj, sal_uIntPtr nItemTextFlags );
+ static OUString GetItemText( const GalleryTheme& rTheme, const SgaObject& rObj, GalleryItemFlags nItemTextFlags );
public: