From 299cb94b8d6d5a41ea2e9b263c3e61fc56d66dbc Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Fri, 6 Jul 2001 08:57:16 +0000 Subject: #89181# TF_SVDATA --- dbaccess/source/ui/inc/JoinTableView.hxx | 24 ++++++++++++++++++------ dbaccess/source/ui/inc/QueryTableView.hxx | 8 ++------ 2 files changed, 20 insertions(+), 12 deletions(-) (limited to 'dbaccess/source/ui/inc') diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx index 08211a0ea74e..dafd30915a8c 100644 --- a/dbaccess/source/ui/inc/JoinTableView.hxx +++ b/dbaccess/source/ui/inc/JoinTableView.hxx @@ -2,9 +2,9 @@ * * $RCSfile: JoinTableView.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: oj $ $Date: 2001-06-28 14:26:45 $ + * last change: $Author: oj $ $Date: 2001-07-06 09:55:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,8 +79,12 @@ #ifndef _COMPHELPER_STLTYPES_HXX_ #include #endif +#ifndef _DBACCESS_UI_CALLBACKS_HXX_ +#include "callbacks.hxx" +#endif - +struct AcceptDropEvent; +struct ExecuteDropEvent; namespace dbaui { class OTableConnection; @@ -123,7 +127,8 @@ namespace dbaui }; - class OJoinTableView : public Window + class OJoinTableView : public Window + ,public IDragTransferableListener { public: DECLARE_STL_USTRINGACCESS_MAP(OTableWindow*,OTableWindowMap); @@ -218,6 +223,11 @@ namespace dbaui virtual BOOL IsAddAllowed(); virtual long PreNotify(NotifyEvent& rNEvt); + // DnD stuff + virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); + virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); + virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); + protected: virtual void MouseButtonUp( const MouseEvent& rEvt ); virtual void MouseButtonDown( const MouseEvent& rEvt ); @@ -229,8 +239,10 @@ namespace dbaui virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void Resize(); - virtual BOOL Drop( const DropEvent& rEvt ); - virtual BOOL QueryDrop( DropEvent& rEvt ); + + virtual void dragFinished( ); +// virtual BOOL Drop( const DropEvent& rEvt ); +// virtual BOOL QueryDrop( DropEvent& rEvt ); // wird nach Verschieben/Groessenaenderung der TabWins aufgerufen (die Standardimplementation reicht die neuen Daten einfach // an die Daten des Wins weiter) diff --git a/dbaccess/source/ui/inc/QueryTableView.hxx b/dbaccess/source/ui/inc/QueryTableView.hxx index c1f27aa3bcca..330005d0b37c 100644 --- a/dbaccess/source/ui/inc/QueryTableView.hxx +++ b/dbaccess/source/ui/inc/QueryTableView.hxx @@ -2,9 +2,9 @@ * * $RCSfile: QueryTableView.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2001-04-30 13:03:02 $ + * last change: $Author: oj $ $Date: 2001-07-06 09:55:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -158,10 +158,6 @@ namespace dbaui // eine neu Connection bekanntgeben und einfuegen lassen, wenn nicht schon existent void NotifyTabConnection(const OQueryTableConnection& rNewConn, BOOL _bCreateUndoAction = TRUE); - // fuer Droppen von Tabellen - BOOL Drop(const DropEvent& rEvt); - BOOL QueryDrop(DropEvent& rEvt); - Link SetTabWinsChangeHandler(const Link& lnk) { Link lnkRet = m_lnkTabWinsChangeHandler; m_lnkTabWinsChangeHandler = lnk; return lnkRet; } // der Handler bekommt einen Zeiger auf eine TabWinsChangeNotification-Struktur -- cgit