/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: svx_fillctrl.cxx,v $
 *
 *  $Revision: 1.6 $
 *
 *  last change: $Author: rt $ $Date: 2006/10/27 21:50:29 $
 *
 *  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
 *
 ************************************************************************/

// include ---------------------------------------------------------------

#include <string> // HACK: prevent conflict between STLPORT and Workshop headers

#ifndef _SFXDISPATCH_HXX //autogen
#include <bf_sfx2/dispatch.hxx>
#endif
#pragma hdrstop

#include "dialogs.hrc"

#define ITEMID_COLOR_TABLE      SID_COLOR_TABLE
#define ITEMID_GRADIENT_LIST    SID_GRADIENT_LIST
#define ITEMID_HATCH_LIST       SID_HATCH_LIST
#define ITEMID_BITMAP_LIST      SID_BITMAP_LIST

#define DELAY_TIMEOUT			300

#define TMP_STR_BEGIN	'['
#define TMP_STR_END		']'


#ifndef _XDEF_HXX
#include "xdef.hxx"
#endif

#include "xattr.hxx"
#include "fillctrl.hxx"
#include "helpid.hrc"
namespace binfilter {

/*N*/ SFX_IMPL_TOOLBOX_CONTROL( SvxFillToolBoxControl, XFillStyleItem );

/*************************************************************************
|*
|* SvxFillToolBoxControl
|*
\************************************************************************/

/*?*/ SvxFillToolBoxControl::SvxFillToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind ) :
/*?*/ 
/*?*/ 	SfxToolBoxControl( nId, rTbx, rBind ),
/*?*/ 
/*?*/ 	aColorForwarder		( SID_ATTR_FILL_COLOR, *this ),
/*?*/ 	aGradientForwarder	( SID_ATTR_FILL_GRADIENT, *this ),
/*?*/ 	aHatchForwarder		( SID_ATTR_FILL_HATCH, *this ),
/*?*/ 	aBitmapForwarder	( SID_ATTR_FILL_BITMAP, *this ),
/*?*/ 
/*?*/ 	pStyleItem		( NULL ),
/*?*/ 	pColorItem		( NULL ),
/*?*/ 	pGradientItem	( NULL ),
/*?*/ 	pHatchItem		( NULL ),
/*?*/ 	pBitmapItem		( NULL ),
/*?*/ 	pFillControl	( NULL ),
/*?*/ 	pFillAttrLB		( NULL ),
/*?*/ 	pFillTypeLB		( NULL ),
/*?*/ 
/*?*/ 	bUpdate			( FALSE ),
/*?*/     eLastXFS        ( XFILL_NONE )
/*?*/ {
/*?*/ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 //STRIP001 	StartListening( rBind );
/*?*/ }

}
