summaryrefslogtreecommitdiff
path: root/dtrans/test/win32/dnd/targetlistener.cxx
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-02-12 12:14:37 +0000
committerJoachim Lingner <jl@openoffice.org>2001-02-12 12:14:37 +0000
commit7d630778109556e1b290606216d0202105f287c2 (patch)
treeaed3111274cca3926d5500895de9c2f556d85cfb /dtrans/test/win32/dnd/targetlistener.cxx
parente482548c4013ad9dbf5543a3d435a35a08616c23 (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/test/win32/dnd/targetlistener.cxx')
-rw-r--r--dtrans/test/win32/dnd/targetlistener.cxx19
1 files changed, 7 insertions, 12 deletions
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx
index a66e4e0cde5f..653c386d5592 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.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jl $ $Date: 2001-02-08 15:10:08 $
+ * last change: $Author: jl $ $Date: 2001-02-12 13:14:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,8 +88,8 @@ void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
throw(RuntimeException)
{
// e.Context->dropComplete( sal_True);
-// e.Context->accept( ACTION_COPY);
- e.Context->reject();
+// 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();
@@ -105,20 +105,15 @@ void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
SendMessage( m_hEdit, WM_SETTEXT, 0, (LPARAM) seq.getConstArray() );
}
-void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEvent& dtde )
+void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEnterEvent& dtde )
throw(RuntimeException)
{
//If one drags something that is not moveable
if( !(dtde.SourceActions & dtde.DropAction) )
- dtde.Context->accept( ACTION_COPY);
+ dtde.Context->acceptDrag( ACTION_COPY);
// dtde.Context->rejectDrag( );
- Sequence<DataFlavor> seq= dtde.Context->getCurrentDataFlavors();
- for( int i=0; i < seq.getLength(); i++)
- {
- DataFlavor& f= seq[i];
- }
}
void SAL_CALL DropTargetListener::dragExit( const DropTargetEvent& dte )
@@ -130,7 +125,7 @@ void SAL_CALL DropTargetListener::dragOver( const DropTargetDragEvent& dtde )
throw(RuntimeException)
{
if( !(dtde.SourceActions & dtde.DropAction) )
- dtde.Context->accept( ACTION_COPY);
+ dtde.Context->acceptDrag( ACTION_COPY);
}
void SAL_CALL DropTargetListener::dropActionChanged( const DropTargetDragEvent& dtde )