summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/dnd/source.cxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-03-23 08:39:59 +0000
committerTino Rachui <tra@openoffice.org>2001-03-23 08:39:59 +0000
commitd57a1faf4adf52954a64a0cb51d034e2fea8a85b (patch)
tree18f5beca0574bdfe135e4cce17a2c1882744616f /dtrans/source/win32/dnd/source.cxx
parent74066748219dd60744bbcfe4f87d736e7bbaf47f (diff)
shortcut implemented
Diffstat (limited to 'dtrans/source/win32/dnd/source.cxx')
-rw-r--r--dtrans/source/win32/dnd/source.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx
index b4f947de79aa..8e371d604de3 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: source.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: jl $ $Date: 2001-03-02 13:15:15 $
+ * last change: $Author: tra $ $Date: 2001-03-23 09:39:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,6 +94,13 @@ using namespace com::sun::star::awt::MouseButton;
using namespace com::sun::star::awt;
using namespace com::sun::star::lang;
+
+//--> TRA
+
+extern Reference< XTransferable > g_XTransferable;
+
+//<-- TRA
+
DWORD WINAPI DndOleSTAFunc(LPVOID pParams);
@@ -164,6 +171,11 @@ void SAL_CALL DragSource::startDrag( const DragGestureEvent& trigger,
static_cast<DragSource*>(this), listener ) );
// Convert the XTransferable data object into an IDataObject object;
+
+ //--> TRA
+ g_XTransferable = trans;
+ //<-- TRA
+
m_spDataObject= m_aDataConverter.createDataObjFromTransferable(
m_serviceFactory, trans);
@@ -308,6 +320,11 @@ DWORD WINAPI DndOleSTAFunc(LPVOID pParams)
dndActionsToDropEffects( pSource->m_sourceActions),
&dwEffect);
+ //--> TRA
+ // clear the global transferable again
+ g_XTransferable = Reference< XTransferable >( );
+ //<-- TRA
+
OSL_ENSURE( hr != E_INVALIDARG, "IDataObject impl does not contain valid data");
//Fire event