From 5f8008185d55aed09b08750a00c74d8fd85bfd30 Mon Sep 17 00:00:00 2001
From: Kurt Zenker <kz@openoffice.org>
Date: Thu, 27 Apr 2006 08:51:26 +0000
Subject: INTEGRATION: CWS os80 (1.18.66); FILE MERGED 2006/04/10 11:25:25 os
 1.18.66.1: #i62975# AutoFilter toolbox function fixed

---
 extensions/source/bibliography/toolbar.cxx | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 2917c69904bc..b4243da5c153 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: toolbar.cxx,v $
  *
- *  $Revision: 1.18 $
+ *  $Revision: 1.19 $
  *
- *  last change: $Author: kz $ $Date: 2006-01-05 18:08:45 $
+ *  last change: $Author: kz $ $Date: 2006-04-27 09:51:26 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -283,8 +283,7 @@ BibToolBar::BibToolBar(Window* pParent, Link aLink, WinBits nStyle):
     aTimer.SetTimeoutHdl(LINK( this, BibToolBar, SendSelHdl));
     aTimer.SetTimeout(400);
 
-    aMenuTimer.SetTimeoutHdl(LINK( this, BibToolBar, MenuHdl));
-    aMenuTimer.SetTimeout(300);
+    SetDropdownClickHdl( LINK( this, BibToolBar, MenuHdl));
 
     aEdQuery.SetSizePixel(aLBSource.GetSizePixel());
     aEdQuery.Show();
@@ -428,11 +427,7 @@ void BibToolBar::Click()
 {
     sal_uInt16  nId=GetCurItemId();
 
-    if(nId==TBC_BT_AUTOFILTER)
-    {
-        aMenuTimer.Start();
-    }
-    else if(nId == TBC_BT_COL_ASSIGN )
+    if(nId == TBC_BT_COL_ASSIGN )
     {
         if(pDatMan)
             pDatMan->CreateMappingDialog(GetParent());
@@ -555,9 +550,10 @@ IMPL_LINK( BibToolBar, SendSelHdl, Timer*,pT)
     return 0;
 }
 //-----------------------------------------------------------------------------
-IMPL_LINK( BibToolBar, MenuHdl, Timer*,pT)
+IMPL_LINK( BibToolBar, MenuHdl, ToolBox*, pToolbox)//Timer*,pT)
 {
-    if(IsItemDown(TBC_BT_AUTOFILTER))
+    sal_uInt16  nId=GetCurItemId();
+    if(nId==TBC_BT_AUTOFILTER)
     {
         EndSelection();     // vor SetDropMode (SetDropMode ruft SetItemImage)
 
-- 
cgit