/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: svx_lboxctrl.cxx,v $
 *
 *  $Revision: 1.5 $
 *
 *  last change: $Author: rt $ $Date: 2006/10/27 21:51:26 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************/

#ifdef   _TOOLS_DEBUG_HXX
#endif
#ifndef _SV_TOOLBOX_HXX
#include <vcl/toolbox.hxx>
#endif
#ifndef _SFXDISPATCH_HXX
#include <bf_sfx2/dispatch.hxx>
#endif
#ifndef _SFXSTRITEM_HXX
#include <svtools/stritem.hxx>
#endif

#ifndef _SVX_LBOXCTRL_HXX_
#include <lboxctrl.hxx>
#endif

#include <svxids.hrc>
#include <dialogs.hrc>

#include "lboxctrl.hrc"
namespace binfilter {

class SvxPopupWindowListBox;

/////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////













/////////////////////////////////////////////////////////////////



/*N*/ SvxListBoxControl::SvxListBoxControl(
/*N*/ 							USHORT nId, ToolBox& rTbx, SfxBindings& rBind )
/*N*/ 	:SfxToolBoxControl( nId, rTbx, rBind ),
/*N*/ 	pPopupWin	( 0 )
/*N*/ {
/*N*/ 	rTbx.SetItemBits( nId, TIB_DROPDOWN | rTbx.GetItemBits( nId ) );
/*N*/ 	rTbx.Invalidate();
/*N*/ }


/*N*/ SvxListBoxControl::~SvxListBoxControl()
/*N*/ {
/*N*/ }






/*N*/ void SvxListBoxControl::StateChanged(
/*N*/ 		USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
/*N*/ {
/*N*/ 	GetToolBox().EnableItem( GetId(),
/*N*/ 							SFX_ITEM_DISABLED != GetItemState(pState) );
/*N*/ }







/////////////////////////////////////////////////////////////////

/*N*/ SFX_IMPL_TOOLBOX_CONTROL( SvxUndoRedoControl, SfxStringItem );

/*N*/ SvxUndoRedoControl::~SvxUndoRedoControl()
/*N*/ {
/*N*/ }





}
