diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-29 13:46:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-30 06:33:04 +0000 |
commit | bc5aa635d7c847ffde9d9c78742d98f865d83805 (patch) | |
tree | 56c274bc1eb7149d888396273c53d749dc48956a /sw/source/uibase/inc/swdtflvr.hxx | |
parent | 4d00ca767de19696084fc52ff3638c448233b818 (diff) |
convert TransferBufferType to o3tl::typed_flags
Change-Id: I69bed592e4c7c93ec9d6eb1e92481048370dfb90
Reviewed-on: https://gerrit.libreoffice.org/31361
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/swdtflvr.hxx')
-rw-r--r-- | sw/source/uibase/inc/swdtflvr.hxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/sw/source/uibase/inc/swdtflvr.hxx b/sw/source/uibase/inc/swdtflvr.hxx index f09e7017f87a..64a90c5dfd5e 100644 --- a/sw/source/uibase/inc/swdtflvr.hxx +++ b/sw/source/uibase/inc/swdtflvr.hxx @@ -25,6 +25,7 @@ #include <vcl/graph.hxx> #include <sfx2/lnkbase.hxx> #include <com/sun/star/embed/XEmbeddedObject.hpp> +#include <o3tl/typed_flags_set.hxx> class Graphic; class ImageMap; @@ -39,18 +40,20 @@ class SwFrameShell; class SwView_Impl; enum class SwPasteSdr; -typedef sal_uInt16 TransferBufferType; -namespace nsTransferBufferType +enum class TransferBufferType : sal_uInt16 { - const sal_uInt16 TRNSFR_NONE = 0x0000; - const sal_uInt16 TRNSFR_DOCUMENT = 0x0001; - const sal_uInt16 TRNSFR_DOCUMENT_WORD = 0x0002; - const sal_uInt16 TRNSFR_GRAPHIC = 0x0004; - const sal_uInt16 TRNSFR_TABELLE = 0x0008; - const sal_uInt16 TRNSFR_DDELINK = 0x0010; - const sal_uInt16 TRNSFR_OLE = 0x0020; - const sal_uInt16 TRNSFR_INETFLD = 0x0040; - const sal_uInt16 TRNSFR_DRAWING = 0x0081; // drawing is internal too! + NONE = 0x0000, + Document = 0x0001, + DocumentWord = 0x0002, + Graphic = 0x0004, + Table = 0x0008, + DdeLink = 0x0010, + Ole = 0x0020, + InetField = 0x0040, + Drawing = 0x0081, // drawing is internal too! +}; +namespace o3tl { + template<> struct typed_flags<TransferBufferType> : is_typed_flags<TransferBufferType, 0x00ff> {}; } class SW_DLLPUBLIC SwTransferable : public TransferableHelper |