summaryrefslogtreecommitdiff
path: root/svtools/source/misc/transfer2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/transfer2.cxx')
-rw-r--r--svtools/source/misc/transfer2.cxx50
1 files changed, 0 insertions, 50 deletions
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx
index 09d9a891e3d0..444476b4a66b 100644
--- a/svtools/source/misc/transfer2.cxx
+++ b/svtools/source/misc/transfer2.cxx
@@ -34,8 +34,6 @@
#include <svtools/transfer.hxx>
-
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::io;
@@ -44,27 +42,22 @@ using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::datatransfer::dnd;
-
-
DragSourceHelper::DragGestureListener::DragGestureListener( DragSourceHelper& rDragSourceHelper ) :
mrParent( rDragSourceHelper )
{
}
-
DragSourceHelper::DragGestureListener::~DragGestureListener()
{
}
-
void SAL_CALL DragSourceHelper::DragGestureListener::disposing( const EventObject& ) throw( RuntimeException, std::exception )
{
}
-
void SAL_CALL DragSourceHelper::DragGestureListener::dragGestureRecognized( const DragGestureEvent& rDGE ) throw( RuntimeException, std::exception )
{
const SolarMutexGuard aGuard;
@@ -74,8 +67,6 @@ void SAL_CALL DragSourceHelper::DragGestureListener::dragGestureRecognized( cons
}
-
-
DragSourceHelper::DragSourceHelper( vcl::Window* pWindow ) :
mxDragGestureRecognizer( pWindow->GetDragGestureRecognizer() )
{
@@ -87,7 +78,6 @@ DragSourceHelper::DragSourceHelper( vcl::Window* pWindow ) :
}
-
DragSourceHelper::~DragSourceHelper()
{
if( mxDragGestureRecognizer.is() )
@@ -95,14 +85,11 @@ DragSourceHelper::~DragSourceHelper()
}
-
void DragSourceHelper::StartDrag( sal_Int8, const Point& )
{
}
-
-
DropTargetHelper::DropTargetListener::DropTargetListener( DropTargetHelper& rDropTargetHelper ) :
mrParent( rDropTargetHelper ),
mpLastDragOverEvent( nullptr )
@@ -110,20 +97,17 @@ DropTargetHelper::DropTargetListener::DropTargetListener( DropTargetHelper& rDro
}
-
DropTargetHelper::DropTargetListener::~DropTargetListener()
{
delete mpLastDragOverEvent;
}
-
void SAL_CALL DropTargetHelper::DropTargetListener::disposing( const EventObject& ) throw( RuntimeException, std::exception )
{
}
-
void SAL_CALL DropTargetHelper::DropTargetListener::drop( const DropTargetDropEvent& rDTDE ) throw( RuntimeException, std::exception )
{
const SolarMutexGuard aGuard;
@@ -173,7 +157,6 @@ void SAL_CALL DropTargetHelper::DropTargetListener::drop( const DropTargetDropEv
}
-
void SAL_CALL DropTargetHelper::DropTargetListener::dragEnter( const DropTargetDragEnterEvent& rDTDEE ) throw( RuntimeException, std::exception )
{
const SolarMutexGuard aGuard;
@@ -190,7 +173,6 @@ void SAL_CALL DropTargetHelper::DropTargetListener::dragEnter( const DropTargetD
}
-
void SAL_CALL DropTargetHelper::DropTargetListener::dragOver( const DropTargetDragEvent& rDTDE ) throw( RuntimeException, std::exception )
{
const SolarMutexGuard aGuard;
@@ -215,7 +197,6 @@ void SAL_CALL DropTargetHelper::DropTargetListener::dragOver( const DropTargetDr
}
-
void SAL_CALL DropTargetHelper::DropTargetListener::dragExit( const DropTargetEvent& ) throw( RuntimeException, std::exception )
{
const SolarMutexGuard aGuard;
@@ -238,15 +219,11 @@ void SAL_CALL DropTargetHelper::DropTargetListener::dragExit( const DropTargetEv
}
-
-
void SAL_CALL DropTargetHelper::DropTargetListener::dropActionChanged( const DropTargetDragEvent& ) throw( RuntimeException, std::exception )
{
}
-
-
DropTargetHelper::DropTargetHelper( vcl::Window* pWindow ) :
mxDropTarget( pWindow->GetDropTarget() ),
mpFormats( new DataFlavorExVector )
@@ -255,7 +232,6 @@ DropTargetHelper::DropTargetHelper( vcl::Window* pWindow ) :
}
-
DropTargetHelper::DropTargetHelper( const Reference< XDropTarget >& rxDropTarget ) :
mxDropTarget( rxDropTarget ),
mpFormats( new DataFlavorExVector )
@@ -264,7 +240,6 @@ DropTargetHelper::DropTargetHelper( const Reference< XDropTarget >& rxDropTarget
}
-
DropTargetHelper::~DropTargetHelper()
{
if( mxDropTarget.is() )
@@ -274,7 +249,6 @@ DropTargetHelper::~DropTargetHelper()
}
-
void DropTargetHelper::ImplConstruct()
{
if( mxDropTarget.is() )
@@ -286,7 +260,6 @@ void DropTargetHelper::ImplConstruct()
}
-
void DropTargetHelper::ImplBeginDrag( const Sequence< DataFlavor >& rSupportedDataFlavors )
{
mpFormats->clear();
@@ -294,28 +267,24 @@ void DropTargetHelper::ImplBeginDrag( const Sequence< DataFlavor >& rSupportedDa
}
-
void DropTargetHelper::ImplEndDrag()
{
mpFormats->clear();
}
-
sal_Int8 DropTargetHelper::AcceptDrop( const AcceptDropEvent& )
{
return( DNDConstants::ACTION_NONE );
}
-
sal_Int8 DropTargetHelper::ExecuteDrop( const ExecuteDropEvent& )
{
return( DNDConstants::ACTION_NONE );
}
-
bool DropTargetHelper::IsDropFormatSupported( SotClipboardFormatId nFormat )
{
DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
@@ -334,7 +303,6 @@ bool DropTargetHelper::IsDropFormatSupported( SotClipboardFormatId nFormat )
}
-
// TransferDataContainer
@@ -345,11 +313,9 @@ struct TDataCntnrEntry_Impl
};
-
typedef ::std::list< TDataCntnrEntry_Impl > TDataCntnrEntryList;
-
struct TransferDataContainer_Impl
{
TDataCntnrEntryList aFmtList;
@@ -370,27 +336,23 @@ struct TransferDataContainer_Impl
};
-
TransferDataContainer::TransferDataContainer()
: pImpl( new TransferDataContainer_Impl )
{
}
-
TransferDataContainer::~TransferDataContainer()
{
delete pImpl;
}
-
void TransferDataContainer::AddSupportedFormats()
{
}
-
bool TransferDataContainer::GetData(
const css::datatransfer::DataFlavor& rFlavor, const OUString& /*rDestDoc*/ )
{
@@ -438,7 +400,6 @@ bool TransferDataContainer::GetData(
}
-
void TransferDataContainer::CopyINetBookmark( const INetBookmark& rBkmk )
{
if( !pImpl->pBookmk )
@@ -455,7 +416,6 @@ void TransferDataContainer::CopyINetBookmark( const INetBookmark& rBkmk )
}
-
void TransferDataContainer::CopyAnyData( SotClipboardFormatId nFormatId,
const sal_Char* pData, sal_uLong nLen )
{
@@ -473,7 +433,6 @@ void TransferDataContainer::CopyAnyData( SotClipboardFormatId nFormatId,
}
-
void TransferDataContainer::CopyByteString( SotClipboardFormatId nFormatId,
const OString& rStr )
{
@@ -481,7 +440,6 @@ void TransferDataContainer::CopyByteString( SotClipboardFormatId nFormatId,
}
-
void TransferDataContainer::CopyINetImage( const INetImage& rINtImg )
{
SvMemoryStream aMemStm( 1024, 1024 );
@@ -492,7 +450,6 @@ void TransferDataContainer::CopyINetImage( const INetImage& rINtImg )
}
-
void TransferDataContainer::CopyImageMap( const ImageMap& rImgMap )
{
SvMemoryStream aMemStm( 8192, 8192 );
@@ -503,7 +460,6 @@ void TransferDataContainer::CopyImageMap( const ImageMap& rImgMap )
}
-
void TransferDataContainer::CopyGraphic( const Graphic& rGrf )
{
GraphicType nType = rGrf.GetType();
@@ -529,7 +485,6 @@ void TransferDataContainer::CopyGraphic( const Graphic& rGrf )
}
-
void TransferDataContainer::CopyString( SotClipboardFormatId nFmt, const OUString& rStr )
{
if( !rStr.isEmpty() )
@@ -544,14 +499,12 @@ void TransferDataContainer::CopyString( SotClipboardFormatId nFmt, const OUStrin
}
-
void TransferDataContainer::CopyString( const OUString& rStr )
{
CopyString( SotClipboardFormatId::STRING, rStr );
}
-
void TransferDataContainer::CopyAny( SotClipboardFormatId nFmt,
const css::uno::Any& rAny )
{
@@ -563,7 +516,6 @@ void TransferDataContainer::CopyAny( SotClipboardFormatId nFmt,
}
-
bool TransferDataContainer::HasAnyData() const
{
return pImpl->aFmtList.begin() != pImpl->aFmtList.end() ||
@@ -571,7 +523,6 @@ bool TransferDataContainer::HasAnyData() const
}
-
void TransferDataContainer::StartDrag(
vcl::Window* pWindow, sal_Int8 nDragSourceActions,
const Link<sal_Int8,void>& rLnk, sal_Int32 nDragPointer, sal_Int32 nDragImage )
@@ -582,7 +533,6 @@ void TransferDataContainer::StartDrag(
}
-
void TransferDataContainer::DragFinished( sal_Int8 nDropAction )
{
pImpl->aFinshedLnk.Call( nDropAction );