diff options
Diffstat (limited to 'vcl/source/window/dndlcon.cxx')
-rw-r--r-- | vcl/source/window/dndlcon.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vcl/source/window/dndlcon.cxx b/vcl/source/window/dndlcon.cxx index fee57ec8cb79..1f3459c371c4 100644 --- a/vcl/source/window/dndlcon.cxx +++ b/vcl/source/window/dndlcon.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <dndlcon.hxx> using namespace ::cppu; @@ -25,10 +24,6 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::datatransfer; using namespace ::com::sun::star::datatransfer::dnd; - - - - DNDListenerContainer::DNDListenerContainer( sal_Int8 nDefaultActions ) : WeakComponentImplHelper4< XDragGestureRecognizer, XDropTargetDragContext, XDropTargetDropContext, XDropTarget >(GetMutex()) { @@ -36,107 +31,83 @@ DNDListenerContainer::DNDListenerContainer( sal_Int8 nDefaultActions ) m_nDefaultActions = nDefaultActions; } - - - - DNDListenerContainer::~DNDListenerContainer() { } - // DNDListenerContainer::addDragGestureListener - void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDragGestureListener >& dgl ) throw(RuntimeException, std::exception) { rBHelper.addListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl ); } - // DNDListenerContainer::removeDragGestureListener - void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference< XDragGestureListener >& dgl ) throw(RuntimeException, std::exception) { rBHelper.removeListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl ); } - // DNDListenerContainer::resetRecognizer - void SAL_CALL DNDListenerContainer::resetRecognizer( ) throw(RuntimeException, std::exception) { } - // DNDListenerContainer::addDropTargetListener - void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDropTargetListener >& dtl ) throw(RuntimeException, std::exception) { rBHelper.addListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl ); } - // DNDListenerContainer::removeDropTargetListener - void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< XDropTargetListener >& dtl ) throw(RuntimeException, std::exception) { rBHelper.removeListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl ); } - // DNDListenerContainer::isActive - sal_Bool SAL_CALL DNDListenerContainer::isActive( ) throw(RuntimeException, std::exception) { return m_bActive; } - // DNDListenerContainer::setActive - void SAL_CALL DNDListenerContainer::setActive( sal_Bool active ) throw(RuntimeException, std::exception) { m_bActive = active; } - // DNDListenerContainer::getDefaultActions - sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( ) throw(RuntimeException, std::exception) { return m_nDefaultActions; } - // DNDListenerContainer::setDefaultActions - void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions ) throw(RuntimeException, std::exception) { m_nDefaultActions = actions; } - // DNDListenerContainer::fireDropEvent - sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDropContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, const Reference< XTransferable >& transferable ) @@ -206,10 +177,8 @@ sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDrop return nRet; } - // DNDListenerContainer::fireDragExitEvent - sal_uInt32 DNDListenerContainer::fireDragExitEvent() { sal_uInt32 nRet = 0; @@ -250,10 +219,8 @@ sal_uInt32 DNDListenerContainer::fireDragExitEvent() return nRet; } - // DNDListenerContainer::fireDragOverEvent - sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions ) { @@ -315,10 +282,8 @@ sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTarget return nRet; } - // DNDListenerContainer::fireDragEnterEvent - sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, const Sequence< DataFlavor >& dataFlavors ) @@ -381,10 +346,8 @@ sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTarge return nRet; } - // DNDListenerContainer::fireDropActionChangedEvent - sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions ) { @@ -446,10 +409,8 @@ sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XD return nRet; } - // DNDListenerContainer::fireDragGestureEvent - sal_uInt32 DNDListenerContainer::fireDragGestureEvent( sal_Int8 dragAction, sal_Int32 dragOriginX, sal_Int32 dragOriginY, const Reference< XDragSource >& dragSource, const Any& triggerEvent ) { @@ -492,10 +453,8 @@ sal_uInt32 DNDListenerContainer::fireDragGestureEvent( sal_Int8 dragAction, sal_ return nRet; } - // DNDListenerContainer::acceptDrag - void SAL_CALL DNDListenerContainer::acceptDrag( sal_Int8 dragOperation ) throw (RuntimeException, std::exception) { if( m_xDropTargetDragContext.is() ) @@ -505,38 +464,30 @@ void SAL_CALL DNDListenerContainer::acceptDrag( sal_Int8 dragOperation ) throw ( } } - // DNDListenerContainer::rejectDrag - void SAL_CALL DNDListenerContainer::rejectDrag( ) throw (RuntimeException, std::exception) { // nothing to do here } - // DNDListenerContainer::acceptDrop - void SAL_CALL DNDListenerContainer::acceptDrop( sal_Int8 dropOperation ) throw (RuntimeException, std::exception) { if( m_xDropTargetDropContext.is() ) m_xDropTargetDropContext->acceptDrop( dropOperation ); } - // DNDListenerContainer::rejectDrop - void SAL_CALL DNDListenerContainer::rejectDrop( ) throw (RuntimeException, std::exception) { // nothing to do here } - // DNDListenerContainer::dropComplete - void SAL_CALL DNDListenerContainer::dropComplete( sal_Bool success ) throw (RuntimeException, std::exception) { if( m_xDropTargetDropContext.is() ) |