diff options
author | Joachim Lingner <jl@openoffice.org> | 2001-08-14 13:11:25 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2001-08-14 13:11:25 +0000 |
commit | 044a23cfc2ecebf3e02db042ce9c57cea0aadf13 (patch) | |
tree | 9236a8224ccac7d2e4e9d2e72e07b04697245b74 /dtrans/test/win32 | |
parent | 09da395e32bde03e48ae2bf9aa63cfaa361d0849 (diff) |
*** empty log message ***
Diffstat (limited to 'dtrans/test/win32')
-rw-r--r-- | dtrans/test/win32/dnd/targetlistener.cxx | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx index 8959653d8cb7..2f6d51657635 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.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jl $ $Date: 2001-07-19 11:14:24 $ + * last change: $Author: jl $ $Date: 2001-08-14 14:11:25 $ * * 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,9 +108,13 @@ 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( ); @@ -124,6 +128,11 @@ 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); } |