diff options
author | Joachim Lingner <jl@openoffice.org> | 2001-02-08 13:30:48 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2001-02-08 13:30:48 +0000 |
commit | 1cd01f7927034ab05418ccdb71b40713cd7211e3 (patch) | |
tree | c03a783f3bfd144805da29c9ca67e036083108ba /dtrans/source/win32/dnd/targetdropcontext.cxx | |
parent | 0e8349c82a1539b10362ff9d78c7d3c1454f60bd (diff) |
DTransHelper.cxx DTransHelper.hxx DataObjectWrapper.cxx DataObjectWrapper.hxx FmtTranslTbl.hxx ImplHelper.cxx ImplHelper.hxx TransferableWrapper.cxx TransferableWrapper.hxx TxtConvertHelper.cxx TxtConvertHelper.hxx dnd.xml dndentry.cxx globals.cxx globals.hxx makefile.mk source.cxx source.hxx sourcecontext.cxx sourcecontext.hxx target.cxx target.hxx targetdragcontext.cxx targetdragcontext.hxx targetdropcontext.cxx targetdropcontext.hxx
Diffstat (limited to 'dtrans/source/win32/dnd/targetdropcontext.cxx')
-rw-r--r-- | dtrans/source/win32/dnd/targetdropcontext.cxx | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/dtrans/source/win32/dnd/targetdropcontext.cxx b/dtrans/source/win32/dnd/targetdropcontext.cxx index 4cbdc5aa96cd..4f4017c2f87a 100644 --- a/dtrans/source/win32/dnd/targetdropcontext.cxx +++ b/dtrans/source/win32/dnd/targetdropcontext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: targetdropcontext.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mh $ $Date: 2001-01-31 15:37:19 $ + * last change: $Author: jl $ $Date: 2001-02-08 14:30:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,11 @@ #include "targetdropcontext.hxx" +using namespace ::com::sun::star::datatransfer::dnd; +using namespace ::cppu; +using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::lang; + TargetDropContext::TargetDropContext( DropTarget* p, sal_uInt32 id): m_id( id) { m_pDropTarget= p; @@ -72,18 +77,31 @@ TargetDropContext::~TargetDropContext() m_pDropTarget->release(); } -void SAL_CALL TargetDropContext::acceptDrop( sal_Int8 dropOperation ) +void SAL_CALL TargetDropContext::accept( sal_Int8 dropOperation ) throw(InvalidDNDOperationException, RuntimeException) { m_pDropTarget->_acceptDrop( dropOperation, m_id); } - -void SAL_CALL TargetDropContext::rejectDrop( ) +// +void SAL_CALL TargetDropContext::reject( ) throw(InvalidDNDOperationException, RuntimeException) { m_pDropTarget->_rejectDrop( m_id); } +Sequence< DataFlavor > SAL_CALL TargetDropContext::getCurrentDataFlavors( ) + throw(RuntimeException) +{ + return m_pDropTarget->_getCurrentDataFlavors( m_id); +} + +sal_Bool SAL_CALL TargetDropContext::isDataFlavorSupported( const DataFlavor& df ) + throw(RuntimeException) +{ + return m_pDropTarget->_isDataFlavorSupported( df, m_id); +} + + void SAL_CALL TargetDropContext::dropComplete( sal_Bool success ) throw(InvalidDNDOperationException, RuntimeException) { |