summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/transobj.hxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-07-18 22:07:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-19 05:58:21 +0000
commit4306e6600623262964c88c1f8f66188896c3d2a6 (patch)
treea00a0b7b61c594d92beaa591e5df83263c4b4774 /sc/source/ui/inc/transobj.hxx
parentd2ab8f8c33f0eb7c49c6ecb03da7b8616fce8db5 (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/transobj.hxx')
-rw-r--r--sc/source/ui/inc/transobj.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx
index 9e2e823bfac5..6c62815e1de7 100644
--- a/sc/source/ui/inc/transobj.hxx
+++ b/sc/source/ui/inc/transobj.hxx
@@ -27,6 +27,7 @@
class ScDocShell;
class ScMarkData;
class SfxObjectShell;
+enum class ScDragSrc;
namespace com { namespace sun { namespace star {
namespace sheet {
@@ -51,7 +52,7 @@ private:
SCCOL nSourceCursorX;
SCROW nSourceCursorY;
SCTAB nVisibleTab;
- sal_uInt16 nDragSourceFlags;
+ ScDragSrc nDragSourceFlags;
bool bDragWasInternal;
bool bUsedForLink;
bool bHasFiltered; // if has filtered rows
@@ -88,7 +89,7 @@ public:
SCCOL GetSourceCursorX() const { return nSourceCursorX; }
SCROW GetSourceCursorY() const { return nSourceCursorY; }
SCTAB GetVisibleTab() const { return nVisibleTab; }
- sal_uInt16 GetDragSourceFlags() const { return nDragSourceFlags; }
+ ScDragSrc GetDragSourceFlags() const { return nDragSourceFlags; }
bool HasFilteredRows() const { return bHasFiltered; }
bool GetUseInApi() const { return bUseInApi; }
ScDocShell* GetSourceDocShell();
@@ -100,7 +101,7 @@ public:
void SetSourceCursorPos( SCCOL nX, SCROW nY );
void SetVisibleTab( SCTAB nNew );
void SetDragSource( ScDocShell* pSourceShell, const ScMarkData& rMark );
- void SetDragSourceFlags( sal_uInt16 nFlags );
+ void SetDragSourceFlags( ScDragSrc nFlags );
void SetDragWasInternal();
SC_DLLPUBLIC void SetUseInApi( bool bSet );