1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 //========================================================================
3 // class SvxColorWindow_Impl --------------------------------------------------
4 //========================================================================
5 #ifndef __SVX_COLORWINDOW_HXX_
6 #define __SVX_COLORWINDOW_HXX_
8 #include <sfx2/tbxctrl.hxx>
9 #include <svtools/valueset.hxx>
10 #include <svl/lstner.hxx>
11 #include <rtl/ustring.hxx>
12 #include <com/sun/star/frame/XFrame.hpp>
14 //========================================================================
15 // class SvxColorWindow_Impl --------------------------------------------------
16 //========================================================================
18 class SvxColorWindow_Impl
: public SfxPopupWindow
20 using FloatingWindow::StateChanged
;
23 const sal_uInt16 theSlotId
;
25 rtl::OUString maCommand
;
26 const Color mLastColor
;
29 DECL_LINK( SelectHdl
, void * );
33 virtual void Resize();
34 virtual sal_Bool
Close();
37 SvxColorWindow_Impl( const rtl::OUString
& rCommand
,
39 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
40 const String
& rWndTitle
,
41 Window
* pParentWindow
,
42 const Color rLastColor
= COL_AUTO
);
43 ~SvxColorWindow_Impl();
44 void StartSelection();
46 virtual void KeyInput( const KeyEvent
& rKEvt
);
47 virtual void StateChanged( sal_uInt16 nSID
, SfxItemState eState
, const SfxPoolItem
* pState
);
49 virtual SfxPopupWindow
* Clone() const;
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */