From 1cd01f7927034ab05418ccdb71b40713cd7211e3 Mon Sep 17 00:00:00 2001 From: Joachim Lingner Date: Thu, 8 Feb 2001 13:30:48 +0000 Subject: 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 --- dtrans/source/win32/dnd/sourcecontext.hxx | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'dtrans/source/win32/dnd/sourcecontext.hxx') diff --git a/dtrans/source/win32/dnd/sourcecontext.hxx b/dtrans/source/win32/dnd/sourcecontext.hxx index 1c3124265256..e8d282db61ed 100644 --- a/dtrans/source/win32/dnd/sourcecontext.hxx +++ b/dtrans/source/win32/dnd/sourcecontext.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sourcecontext.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mh $ $Date: 2001-01-31 15:37:18 $ + * 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 @@ -67,6 +67,10 @@ #ifndef _COM_SUN_STAR_DATATRANSFER_DND_XDRAGSOURCECONTEXT_HPP_ #include #endif +#ifndef _CPPUHELPER_COMPBASE1_HXX_ +#include +#endif + #include "source.hxx" @@ -76,16 +80,24 @@ using namespace ::cppu; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -class SourceContext: public WeakImplHelper1 + +// This class fires events to XDragSourceListener implementations. +// Of that interface only dragDropEnd and dropActionChanged are called. +// The functions dragEnter, dragExit and dragOver are not supported +// currently +class SourceContext: public MutexDummy, + public WeakComponentImplHelper1 { DragSource* m_pDragSource; + Reference m_dragSource; SourceContext(); SourceContext( const SourceContext&); SourceContext &operator= (const SourceContext& ); + public: - SourceContext( DragSource* pSource); + SourceContext( DragSource* pSource, const Reference& listener); ~SourceContext(); virtual void SAL_CALL addDragSourceListener( const Reference& dsl ) @@ -101,6 +113,12 @@ public: virtual void SAL_CALL transferablesFlavorsChanged( ) throw( RuntimeException); + + + // non - interface functions + void fire_dragDropEnd( sal_Bool success, sal_Int8 byte); + void fire_dropActionChanged( sal_Int8 dropAction, sal_Int8 userAction); + }; -- cgit