summaryrefslogtreecommitdiff
path: root/sw/source/ui/cctrl/popbox.cxx
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-07-05 14:23:17 +0000
committerjp <jp@openoffice.org>2001-07-05 14:23:17 +0000
commit2ab2e9bd39f6178016a665be2331150bcba071c7 (patch)
tree3cf2a5021118ed350534a2c81398dec1c5008533 /sw/source/ui/cctrl/popbox.cxx
parent19ce22b044f9a311079661131adbee2e27cbcb5e (diff)
changes for TF_DATA
Diffstat (limited to 'sw/source/ui/cctrl/popbox.cxx')
-rw-r--r--sw/source/ui/cctrl/popbox.cxx50
1 files changed, 29 insertions, 21 deletions
diff --git a/sw/source/ui/cctrl/popbox.cxx b/sw/source/ui/cctrl/popbox.cxx
index 2513e9bb66f6..fd8bdd4c9761 100644
--- a/sw/source/ui/cctrl/popbox.cxx
+++ b/sw/source/ui/cctrl/popbox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: popbox.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: os $ $Date: 2001-07-05 10:07:03 $
+ * last change: $Author: jp $ $Date: 2001-07-05 15:23:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,18 +65,27 @@
#pragma hdrstop
-#include "cmdid.h"
-#include "swtypes.hxx"
-#include "segmentc.hxx"
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
-#include "popbox.hxx"
+#ifndef _POPBOX_HXX
+#include <popbox.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
// --- class SwHelpToolBox ---------------------------------------------
-SwHelpToolBox::SwHelpToolBox( Window* pParent, const ResId& rResId ) :
- ToolBox( pParent, rResId )
+SwHelpToolBox::SwHelpToolBox( SwNavigationPI* pParent, const ResId& rResId )
+ : ToolBox( pParent, rResId ),
+ DropTargetHelper( this )
{
}
@@ -87,9 +96,9 @@ void SwHelpToolBox::MouseButtonDown(const MouseEvent &rEvt)
// Dessen Returnwert entscheidet ueber andere Verarbeitung
// Doppelclickhandler nur, wenn nicht auf einen Button geclickt wurde
if(rEvt.GetButtons() == MOUSE_RIGHT &&
- 0 == GetItemId(rEvt.GetPosPixel())) {
+ 0 == GetItemId(rEvt.GetPosPixel()))
+ {
aRightClickLink.Call((MouseEvent *)&rEvt);
- return;
}
else
ToolBox::MouseButtonDown(rEvt);
@@ -99,7 +108,8 @@ void SwHelpToolBox::MouseButtonDown(const MouseEvent &rEvt)
long SwHelpToolBox::DoubleClick( ToolBox* pCaller )
{
// kein Doppelklick auf einen Button
- if(0 == pCaller->GetCurItemId() && aDoubleClickLink.Call(0)) return TRUE;
+ if( 0 == pCaller->GetCurItemId() && aDoubleClickLink.Call(0) )
+ return TRUE;
return FALSE;
}
@@ -110,16 +120,14 @@ long SwHelpToolBox::DoubleClick( ToolBox* pCaller )
SwHelpToolBox::~SwHelpToolBox() {}
+sal_Int8 SwHelpToolBox::AcceptDrop( const AcceptDropEvent& rEvt )
+{
+ return ((SwNavigationPI*)GetParent())->AcceptDrop( rEvt );
+}
-//BOOL SwHelpToolBox::Drop( const DropEvent& rEvt)
-//{
-// return GetParent()->Drop(rEvt);
-//}
-
-
-//BOOL SwHelpToolBox::QueryDrop( DropEvent& rEvt)
-//{
-// return GetParent()->QueryDrop(rEvt);
-//}
+sal_Int8 SwHelpToolBox::ExecuteDrop( const ExecuteDropEvent& rEvt )
+{
+ return ((SwNavigationPI*)GetParent())->ExecuteDrop( rEvt );
+}