summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/transobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r--sc/source/ui/app/transobj.cxx33
1 files changed, 30 insertions, 3 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 8789daa13..61d57f7c2 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: transobj.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: nn $ $Date: 2001-02-14 19:14:35 $
+ * last change: $Author: nn $ $Date: 2001-03-23 19:21:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -147,7 +147,9 @@ void ScTransferObj::PaintToDev( OutputDevice* pDev, ScDocument* pDoc, double nPr
ScTransferObj::ScTransferObj( ScDocument* pClipDoc, const TransferableObjectDescriptor& rDesc ) :
aObjDesc( rDesc ),
- pDoc( pClipDoc )
+ pDoc( pClipDoc ),
+ nDragHandleX( 0 ),
+ nDragHandleY( 0 )
{
DBG_ASSERT(pDoc->IsClipboard(), "wrong document");
@@ -200,6 +202,11 @@ ScTransferObj::~ScTransferObj()
DBG_ERROR("ScTransferObj wasn't released");
pScMod->SetClipObject( NULL, NULL );
}
+ if ( pScMod->GetDragData().pCellTransfer == this )
+ {
+ DBG_ERROR("ScTransferObj wasn't released");
+ pScMod->ResetDragObject();
+ }
delete pDoc; // ScTransferObj is owner of clipboard document
}
@@ -422,6 +429,26 @@ void ScTransferObj::ObjectReleased()
TransferableHelper::ObjectReleased();
}
+void ScTransferObj::DragFinished( sal_Int8 nDropAction )
+{
+ if ( nDropAction == DND_ACTION_MOVE )
+ {
+ //! ...
+ }
+
+ ScModule* pScMod = SC_MOD();
+ if ( pScMod->GetDragData().pCellTransfer == this )
+ pScMod->ResetDragObject();
+
+ TransferableHelper::DragFinished( nDropAction );
+}
+
+void ScTransferObj::SetDragHandlePos( USHORT nX, USHORT nY )
+{
+ nDragHandleX = nX;
+ nDragHandleY = nY;
+}
+
//
// initialize aDocShellRef with a live document from the ClipDoc
//