summaryrefslogtreecommitdiff
path: root/include/sfx2/docfilt.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-18 13:03:28 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 08:25:03 +0200
commit48bb2913a7459edb17a5f62c2f6e6fbc4f1051e2 (patch)
tree7e2f09fc8998bc1016f4d2ba7fa09e3125663361 /include/sfx2/docfilt.hxx
parentbdad6d0fe492a2334cb27ef54fc5d1cba17d1970 (diff)
convert SFX_FILTER_ constants to enum class
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
Diffstat (limited to 'include/sfx2/docfilt.hxx')
-rw-r--r--include/sfx2/docfilt.hxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/sfx2/docfilt.hxx b/include/sfx2/docfilt.hxx
index 5506f44cb9c3..dad0da5db039 100644
--- a/include/sfx2/docfilt.hxx
+++ b/include/sfx2/docfilt.hxx
@@ -30,7 +30,6 @@
#include <sal/types.h>
#include <sot/formats.hxx>
#include <sfx2/dllapi.h>
-#include <sfx2/sfxdefs.hxx>
#include <tools/wldcrd.hxx>
#define SFX_FILTER_STARTPRESENTATION 0x20000000L
@@ -78,13 +77,13 @@ public:
const OUString& rServiceName );
~SfxFilter();
- bool IsAllowedAsTemplate() const { return (nFormatType & SFX_FILTER_TEMPLATE) != 0; }
- bool IsOwnFormat() const { return (nFormatType & SFX_FILTER_OWN) != 0; }
- bool IsOwnTemplateFormat() const { return (nFormatType & SFX_FILTER_TEMPLATEPATH) != 0; }
- bool IsAlienFormat() const { return (nFormatType & SFX_FILTER_ALIEN) != 0; }
- bool CanImport() const { return (nFormatType & SFX_FILTER_IMPORT) != 0; }
- bool CanExport() const { return (nFormatType & SFX_FILTER_EXPORT) != 0; }
- bool IsInternal() const { return (nFormatType & SFX_FILTER_INTERNAL) != 0; }
+ bool IsAllowedAsTemplate() const { return bool(nFormatType & SfxFilterFlags::TEMPLATE); }
+ bool IsOwnFormat() const { return bool(nFormatType & SfxFilterFlags::OWN); }
+ bool IsOwnTemplateFormat() const { return bool(nFormatType & SfxFilterFlags::TEMPLATEPATH); }
+ bool IsAlienFormat() const { return bool(nFormatType & SfxFilterFlags::ALIEN); }
+ bool CanImport() const { return bool(nFormatType & SfxFilterFlags::IMPORT); }
+ bool CanExport() const { return bool(nFormatType & SfxFilterFlags::EXPORT); }
+ bool IsInternal() const { return bool(nFormatType & SfxFilterFlags::INTERNAL); }
SfxFilterFlags GetFilterFlags() const { return nFormatType; }
const OUString& GetFilterName() const { return maFilterName; }
const OUString& GetMimeType() const { return aMimeType; }