summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 10:46:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 18:15:20 +0100
commitd7602d052dd12b6764942890ea7c11247e2bd222 (patch)
treee1a0c34fdad80a0832dd00bb5b44e71e20002b9a /include
parente98bad89ddff5bebc3f26d944c1e1be6afe2b6f2 (diff)
convert SVX_GRAPHICFILTER constants to scoped enum
Change-Id: I220a2cfe9ea9ef2aa85e4ad8278be70c338891a5 Reviewed-on: https://gerrit.libreoffice.org/46705 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/grfflt.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/grfflt.hxx b/include/svx/grfflt.hxx
index fc60cd256a05..b3896c0e1387 100644
--- a/include/svx/grfflt.hxx
+++ b/include/svx/grfflt.hxx
@@ -23,9 +23,9 @@
#include <svtools/grfmgr.hxx>
#include <svx/svxdllapi.h>
-#define SVX_GRAPHICFILTER_ERRCODE_NONE 0x00000000
-#define SVX_GRAPHICFILTER_UNSUPPORTED_GRAPHICTYPE 0x00000001
-#define SVX_GRAPHICFILTER_UNSUPPORTED_SLOT 0x00000002
+enum class SvxGraphicFilterResult {
+ NONE, UnsupportedGraphicType, UnsupportedSlot
+};
class SfxRequest;
class SfxItemSet;
@@ -34,7 +34,7 @@ class SVX_DLLPUBLIC SvxGraphicFilter
{
public:
- static sal_uLong ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject );
+ static SvxGraphicFilterResult ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject );
static void DisableGraphicFilterSlots( SfxItemSet& rSet );
};