diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-25 13:05:43 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-25 13:05:43 +0000 |
commit | ec2f352b8fbd698d74979e1a031163e3c9bc90b6 (patch) | |
tree | caf10e3220368369ca523e524b450a0f6466c350 /dtrans/test/win32/dnd/targetlistener.cxx | |
parent | 2e412b3f0d73d337573e388d9854211dd3dee2d2 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'dtrans/test/win32/dnd/targetlistener.cxx')
-rw-r--r-- | dtrans/test/win32/dnd/targetlistener.cxx | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx index 2f6d51657635..8a1e4d2b101d 100644 --- a/dtrans/test/win32/dnd/targetlistener.cxx +++ b/dtrans/test/win32/dnd/targetlistener.cxx @@ -2,9 +2,9 @@ * * $RCSfile: targetlistener.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jl $ $Date: 2001-08-14 14:11:25 $ + * last change: $Author: hr $ $Date: 2003-03-25 14:05:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,9 +87,9 @@ void SAL_CALL DropTargetListener::disposing( const EventObject& Source ) void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e ) throw(RuntimeException) { - e.Context->dropComplete( sal_True); - e.Context->acceptDrop( ACTION_COPY); -// e.Context->rejectDrop(); +// e.Context->dropComplete( sal_True); +// e.Context->acceptDrop( ACTION_COPY); + e.Context->rejectDrop(); // if the Transferable contains text, then we send it to the edit window // Sequence<DataFlavor> flavors= e.Transferable->getTransferDataFlavors(); @@ -108,13 +108,9 @@ void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e ) void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEnterEvent& dtde ) throw(RuntimeException) { - if( (dtde.SourceActions & dtde.DropAction) ) - { - dtde.Context->acceptDrag( dtde.DropAction); - } //If one drags something that is not moveable -// if( !(dtde.SourceActions & dtde.DropAction) ) -// dtde.Context->acceptDrag( ACTION_COPY); + if( !(dtde.SourceActions & dtde.DropAction) ) + dtde.Context->acceptDrag( ACTION_COPY); // dtde.Context->rejectDrag( ); @@ -128,13 +124,8 @@ void SAL_CALL DropTargetListener::dragExit( const DropTargetEvent& dte ) void SAL_CALL DropTargetListener::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException) { - if( (dtde.SourceActions & dtde.DropAction) ) - { - dtde.Context->acceptDrag( dtde.DropAction); - } - -// if( (dtde.SourceActions & dtde.DropAction) ) -// dtde.Context->acceptDrag( ACTION_COPY); + if( !(dtde.SourceActions & dtde.DropAction) ) + dtde.Context->acceptDrag( ACTION_COPY); } void SAL_CALL DropTargetListener::dropActionChanged( const DropTargetDragEvent& dtde ) |