1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 //========================================================================
21 // class SvxColorWindow_Impl --------------------------------------------------
22 //========================================================================
23 #ifndef __SVX_COLORWINDOW_HXX_
24 #define __SVX_COLORWINDOW_HXX_
26 #include <sfx2/tbxctrl.hxx>
27 #include <svtools/valueset.hxx>
28 #include <svl/lstner.hxx>
29 #include <rtl/ustring.hxx>
30 #include <com/sun/star/frame/XFrame.hpp>
31 #include <svx/SvxColorValueSet.hxx>
33 //========================================================================
34 // class SvxColorWindow_Impl --------------------------------------------------
35 //========================================================================
37 class SvxColorWindow_Impl
: public SfxPopupWindow
39 using FloatingWindow::StateChanged
;
42 const sal_uInt16 theSlotId
;
43 SvxColorValueSet aColorSet
;
45 const Color mLastColor
;
47 DECL_LINK( SelectHdl
, void * );
50 virtual void Resize();
51 virtual sal_Bool
Close();
54 SvxColorWindow_Impl( const OUString
& rCommand
,
56 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
57 const String
& rWndTitle
,
58 Window
* pParentWindow
,
59 const Color rLastColor
= COL_AUTO
);
60 ~SvxColorWindow_Impl();
61 void StartSelection();
63 virtual void KeyInput( const KeyEvent
& rKEvt
);
64 virtual void StateChanged( sal_uInt16 nSID
, SfxItemState eState
, const SfxPoolItem
* pState
);
66 virtual SfxPopupWindow
* Clone() const;
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */