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/sourcecontext.hxx | |
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/sourcecontext.hxx')
-rw-r--r-- | dtrans/source/win32/dnd/sourcecontext.hxx | 26 |
1 files changed, 22 insertions, 4 deletions
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 <com/sun/star/datatransfer/dnd/XDragSourceContext.hpp> #endif +#ifndef _CPPUHELPER_COMPBASE1_HXX_ +#include <cppuhelper/compbase1.hxx> +#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<XDragSourceContext> + +// 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<XDragSourceContext> { DragSource* m_pDragSource; + Reference<XDragSource> m_dragSource; SourceContext(); SourceContext( const SourceContext&); SourceContext &operator= (const SourceContext& ); + public: - SourceContext( DragSource* pSource); + SourceContext( DragSource* pSource, const Reference<XDragSourceListener>& listener); ~SourceContext(); virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& 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); + }; |