summaryrefslogtreecommitdiff
path: root/include/sfx2/docfilt.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-12 14:53:28 +0200
committerNoel Grandin <noel@peralex.com>2015-03-18 14:23:50 +0200
commitfb14be5f8f74f83ba89e15f891ddf1f753dcc62f (patch)
treebeaa4af08b0c3d75bf6e40b21b96c55e0ac1c60a /include/sfx2/docfilt.hxx
parentb8ce52aab9459773544f1696cfe6b7b6f171a389 (diff)
create new 'enum class' SotClipboardFormatId to unify types
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
Diffstat (limited to 'include/sfx2/docfilt.hxx')
-rw-r--r--include/sfx2/docfilt.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sfx2/docfilt.hxx b/include/sfx2/docfilt.hxx
index 34d7130d5981..5506f44cb9c3 100644
--- a/include/sfx2/docfilt.hxx
+++ b/include/sfx2/docfilt.hxx
@@ -28,6 +28,7 @@
#include <rtl/ustring.hxx>
#include <sal/config.h>
#include <sal/types.h>
+#include <sot/formats.hxx>
#include <sfx2/dllapi.h>
#include <sfx2/sfxdefs.hxx>
#include <tools/wldcrd.hxx>
@@ -60,7 +61,7 @@ class SFX2_DLLPUBLIC SfxFilter
SfxFilterFlags nFormatType;
sal_uIntPtr nVersion;
- sal_uIntPtr lFormat;
+ SotClipboardFormatId lFormat;
sal_uInt16 nDocIcon;
public:
@@ -69,7 +70,7 @@ public:
SfxFilter( const OUString &rName,
const OUString &rWildCard,
SfxFilterFlags nFormatType,
- sal_uInt32 lFormat,
+ SotClipboardFormatId lFormat,
const OUString &rTypeName,
sal_uInt16 nDocIcon,
const OUString &rMimeType,
@@ -90,14 +91,14 @@ public:
const OUString& GetName() const { return maFilterName; }
const WildCard& GetWildcard() const { return aWildCard; }
const OUString& GetRealTypeName() const { return aTypeName; }
- sal_uIntPtr GetFormat() const { return lFormat; }
+ SotClipboardFormatId GetFormat() const { return lFormat; }
const OUString& GetTypeName() const { return aTypeName; }
const OUString& GetUIName() const { return aUIName; }
sal_uInt16 GetDocIconId() const { return nDocIcon; }
const OUString& GetUserData() const { return aUserData; }
const OUString& GetDefaultTemplate() const { return aDefaultTemplate; }
void SetDefaultTemplate( const OUString& rStr ) { aDefaultTemplate = rStr; }
- bool UsesStorage() const { return GetFormat() != 0; }
+ bool UsesStorage() const { return GetFormat() != SotClipboardFormatId::NONE; }
void SetURLPattern( const OUString& rStr );
OUString GetURLPattern() const { return aPattern; }
void SetUIName( const OUString& rName ) { aUIName = rName; }