Kaydet (Commit) 5ba32287 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused Link<> field

Change-Id: Idfd163528b173b7428a3febfde271762a9d31d03
üst 08e7bc6a
...@@ -28,18 +28,6 @@ SwHelpToolBox::SwHelpToolBox( SwNavigationPI* pParent, const ResId& rResId ) ...@@ -28,18 +28,6 @@ SwHelpToolBox::SwHelpToolBox( SwNavigationPI* pParent, const ResId& rResId )
{ {
} }
void SwHelpToolBox::MouseButtonDown(const MouseEvent &rEvt)
{
// If doubleclick is detected use doubleclick handler
if(rEvt.GetButtons() == MOUSE_RIGHT &&
0 == GetItemId(rEvt.GetPosPixel()))
{
aRightClickLink.Call(const_cast<MouseEvent *>(&rEvt));
}
else
ToolBox::MouseButtonDown(rEvt);
}
SwHelpToolBox::~SwHelpToolBox() {} SwHelpToolBox::~SwHelpToolBox() {}
sal_Int8 SwHelpToolBox::AcceptDrop( const AcceptDropEvent& rEvt ) sal_Int8 SwHelpToolBox::AcceptDrop( const AcceptDropEvent& rEvt )
......
...@@ -26,12 +26,7 @@ class SwNavigationPI; ...@@ -26,12 +26,7 @@ class SwNavigationPI;
class SwHelpToolBox: public ToolBox, public DropTargetHelper class SwHelpToolBox: public ToolBox, public DropTargetHelper
{ {
Link<> aRightClickLink; // link gets mouse event as parameter !!!
using ToolBox::DoubleClick;
protected: protected:
virtual void MouseButtonDown(const MouseEvent &rEvt) override;
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override; virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override; virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment