Update ooo320-m1
[ooovba.git] / dtrans / test / win32 / dnd / sourcelistener.hxx
blobd07bce2f830c59eea265484bc78a9a48bec5a797
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sourcelistener.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SOURCELISTENER_HXX_
32 #define _SOURCELISTENER_HXX_
34 #include <cppuhelper/implbase1.hxx>
35 #include <com/sun/star/datatransfer/dnd/XDragSourceListener.hpp>
36 #include <com/sun/star/datatransfer/dnd/DragSourceDropEvent.hpp>
37 #include <com/sun/star/datatransfer/dnd/DragSourceDragEvent.hpp>
39 using namespace ::com::sun::star::datatransfer;
40 using namespace ::com::sun::star::datatransfer::dnd;
41 using namespace ::cppu;
42 using namespace ::com::sun::star::uno;
43 using namespace ::com::sun::star::lang;
45 class DragSourceListener: public WeakImplHelper1<XDragSourceListener>
47 // this is a window where droped data are shown as text (only text)
48 public:
49 DragSourceListener( );
50 ~DragSourceListener();
52 virtual void SAL_CALL disposing( const EventObject& Source )
53 throw(RuntimeException);
55 virtual void SAL_CALL dragDropEnd( const DragSourceDropEvent& dsde )
56 throw(RuntimeException);
57 virtual void SAL_CALL dragEnter( const DragSourceDragEvent& dsde )
58 throw(RuntimeException);
59 virtual void SAL_CALL dragExit( const DragSourceEvent& dse )
60 throw(RuntimeException);
61 virtual void SAL_CALL dragOver( const DragSourceDragEvent& dsde )
62 throw(RuntimeException);
63 virtual void SAL_CALL dropActionChanged( const DragSourceDragEvent& dsde )
64 throw(RuntimeException);
68 #endif