1 //========================================================================
2 // class SvxColorWindow_Impl --------------------------------------------------
3 //========================================================================
4 #ifndef __SVX_COLORWINDOW_HXX_
5 #define __SVX_COLORWINDOW_HXX_
6 
7 #include <sfx2/tbxctrl.hxx>
8 #include <svl/lstner.hxx>
9 #include <rtl/ustring.hxx>
10 #include <com/sun/star/frame/XFrame.hpp>
11 
12 //========================================================================
13 // class SvxColorWindow_Impl --------------------------------------------------
14 //========================================================================
15 
16 class SvxColorWindow_Impl : public SfxPopupWindow
17 {
18 	using FloatingWindow::StateChanged;
19 
20 private:
21 	const sal_uInt16	                                                    theSlotId;
22 	ValueSet		                                                    aColorSet;
23     rtl::OUString                                                       maCommand;
24 
25 #if _SOLAR__PRIVATE
26 	DECL_LINK( SelectHdl, void * );
27 #endif
28 
29 protected:
30 	virtual void    Resize();
31 	virtual sal_Bool	Close();
32 
33 public:
34     SvxColorWindow_Impl( const rtl::OUString& rCommand,
35                          sal_uInt16 nSlotId,
36                          const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
37 					     const String& rWndTitle,
38                          Window* pParentWindow );
39     ~SvxColorWindow_Impl();
40 	void                StartSelection();
41 
42     virtual void        KeyInput( const KeyEvent& rKEvt );
43     virtual void        StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
44 
45 	virtual SfxPopupWindow* Clone() const;
46 };
47 
48 #endif
49