Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / svx / source / tbxctrls / colorwindow.hxx
blob1b033ab36d8c3b889203ab468986993c798061b3
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;
22 private:
23 const sal_uInt16 theSlotId;
24 ValueSet aColorSet;
25 rtl::OUString maCommand;
26 const Color mLastColor;
28 #if _SOLAR__PRIVATE
29 DECL_LINK( SelectHdl, void * );
30 #endif
32 protected:
33 virtual void Resize();
34 virtual sal_Bool Close();
36 public:
37 SvxColorWindow_Impl( const rtl::OUString& rCommand,
38 sal_uInt16 nSlotId,
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;
52 #endif
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */