diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-07-18 22:07:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-19 05:58:21 +0000 |
commit | 4306e6600623262964c88c1f8f66188896c3d2a6 (patch) | |
tree | a00a0b7b61c594d92beaa591e5df83263c4b4774 /sc/source/ui/inc/drwtrans.hxx | |
parent | d2ab8f8c33f0eb7c49c6ecb03da7b8616fce8db5 (diff) |
sc: convert SC_DROP_* defines to typed flags
flags are stored by ScTransferObj and ScDrawTransferObj
in members nDragSourceFlags, implemented in the same way by both classes.
set only in ScTabControl::DoDrag() and ScContentTree::DoDrag().
convert to typed_flags ScDragSrc and
move flags closer to users, from sc/inc/scmod.hxx to
sc/source/ui/inc/viewdata.hxx
Change-Id: I15f58a5c828e154114971a1fcf941a3e27acbd56
Reviewed-on: https://gerrit.libreoffice.org/27303
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/inc/drwtrans.hxx')
-rw-r--r-- | sc/source/ui/inc/drwtrans.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/inc/drwtrans.hxx b/sc/source/ui/inc/drwtrans.hxx index e36303b1834a..dd022218bc83 100644 --- a/sc/source/ui/inc/drwtrans.hxx +++ b/sc/source/ui/inc/drwtrans.hxx @@ -36,6 +36,7 @@ class SdrObject; class SdrView; class ScDrawView; class SdrOle2Obj; +enum class ScDragSrc; class ScDrawTransferObj : public TransferableHelper { @@ -55,7 +56,7 @@ private: // source information for drag&drop: // (view is needed to handle drawing obejcts) SdrView* pDragSourceView; - sal_uInt16 nDragSourceFlags; + ScDragSrc nDragSourceFlags; bool bDragWasInternal; sal_uInt32 nSourceDocID; @@ -86,13 +87,13 @@ public: void SetDrawPersist( const SfxObjectShellRef& rRef ); void SetDragSource( ScDrawView* pView ); void SetDragSourceObj( SdrObject* pObj, SCTAB nTab ); - void SetDragSourceFlags( sal_uInt16 nFlags ); + void SetDragSourceFlags( ScDragSrc nFlags ); void SetDragWasInternal(); const OUString& GetShellID() const; SdrView* GetDragSourceView() { return pDragSourceView; } - sal_uInt16 GetDragSourceFlags() const { return nDragSourceFlags; } + ScDragSrc GetDragSourceFlags() const { return nDragSourceFlags; } static ScDrawTransferObj* GetOwnClipboard( vcl::Window* pUIWin ); virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) throw( css::uno::RuntimeException, std::exception ) override; |