Update ooo320-m1
[ooovba.git] / svx / source / tbxctrls / colorwindow.hxx
blob50388d6e5c559ff9b54aaa6e67323f66a2ce9c7c
1 //========================================================================
2 // class SvxColorWindow_Impl --------------------------------------------------
3 //========================================================================
4 #ifndef __SVX_COLORWINDOW_HXX_
5 #define __SVX_COLORWINDOW_HXX_
7 #include <sfx2/tbxctrl.hxx>
8 #include <svtools/lstner.hxx>
9 #include <rtl/ustring.hxx>
10 #include <com/sun/star/frame/XFrame.hpp>
12 //========================================================================
13 // class SvxColorWindow_Impl --------------------------------------------------
14 //========================================================================
16 class SvxColorWindow_Impl : public SfxPopupWindow
18 using FloatingWindow::StateChanged;
20 private:
21 const USHORT theSlotId;
22 ValueSet aColorSet;
23 rtl::OUString maCommand;
25 #if _SOLAR__PRIVATE
26 DECL_LINK( SelectHdl, void * );
27 #endif
29 protected:
30 virtual void Resize();
31 virtual BOOL Close();
33 public:
34 SvxColorWindow_Impl( const rtl::OUString& rCommand,
35 USHORT 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();
42 virtual void KeyInput( const KeyEvent& rKEvt );
43 virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
45 virtual SfxPopupWindow* Clone() const;
48 #endif