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/.
11 #ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
12 #define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
14 #include <com/sun/star/frame/XFrame.hpp>
16 #include <svx/sidebar/PanelLayout.hxx>
18 #include <sfx2/sidebar/ControllerItem.hxx>
20 #include <svx/pageitem.hxx>
21 #include <svx/rulritem.hxx>
22 #include <editeng/sizeitem.hxx>
24 #include <vcl/ctrl.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/button.hxx>
27 #include <vcl/toolbox.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/field.hxx>
30 #include <svl/intitem.hxx>
31 #include <svl/lstner.hxx>
33 #include <svtools/valueset.hxx>
35 #include <svx/fntctrl.hxx>
37 #include <svx/ColorSets.hxx>
41 namespace sw
{ namespace sidebar
{
43 class ThemePanel
: public PanelLayout
,
44 public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
46 friend class VclPtr
<ThemePanel
>;
48 static VclPtr
<vcl::Window
> Create(vcl::Window
* pParent
,
49 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
);
51 virtual void NotifyItemUpdate(const sal_uInt16 nSId
,
52 const SfxItemState eState
,
53 const SfxPoolItem
* pState
,
54 const bool bIsEnabled
) override
;
57 ThemePanel(vcl::Window
* pParent
,
58 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
);
59 virtual ~ThemePanel() override
;
61 virtual void dispose() override
;
63 VclPtr
<ListBox
> mpListBoxFonts
;
64 VclPtr
<ValueSet
> mpValueSetColors
;
65 VclPtr
<PushButton
> mpApplyButton
;
67 svx::ColorSets maColorSets
;
69 DECL_LINK(ClickHdl
, Button
*, void);
70 DECL_LINK(DoubleClickHdl
, ListBox
&, void);
71 DECL_LINK(DoubleClickValueSetHdl
, ValueSet
*, void);
72 void DoubleClickHdl();
76 }} // end of namespace sw::sidebar
78 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */