LibreOffice Module sw (master)  1
ThemePanel.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  */
10 
11 #ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
12 #define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
13 
14 #include <com/sun/star/frame/XFrame.hpp>
15 
17 
19 
20 #include <vcl/button.hxx>
21 #include <vcl/lstbox.hxx>
22 
23 #include <svtools/valueset.hxx>
24 
25 #include <svx/ColorSets.hxx>
26 
27 namespace sw { namespace sidebar {
28 
29 class ThemePanel : public PanelLayout,
31 {
32  friend class VclPtr<ThemePanel>;
33 public:
34  static VclPtr<vcl::Window> Create(vcl::Window* pParent,
35  const css::uno::Reference<css::frame::XFrame>& rxFrame);
36 
37  virtual void NotifyItemUpdate(const sal_uInt16 nSId,
38  const SfxItemState eState,
39  const SfxPoolItem* pState,
40  const bool bIsEnabled) override;
41 
42 private:
43  ThemePanel(vcl::Window* pParent,
44  const css::uno::Reference<css::frame::XFrame>& rxFrame);
45  virtual ~ThemePanel() override;
46 
47  virtual void dispose() override;
48 
52 
54 
55  DECL_LINK(ClickHdl, Button*, void);
57  DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void);
58  void DoubleClickHdl();
59 
60 };
61 
62 }} // end of namespace sw::sidebar
63 
64 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ThemePanel() override
Definition: ThemePanel.cxx:462
static VclPtr< vcl::Window > Create(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)
Definition: ThemePanel.cxx:416
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:38
virtual void dispose() override
Definition: ThemePanel.cxx:467
ThemePanel(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)
Definition: ThemePanel.cxx:427
VclPtr< ValueSet > mpValueSetColors
Definition: ThemePanel.hxx:50
SfxItemState
svx::ColorSets maColorSets
Definition: ThemePanel.hxx:53
DECL_LINK(ClickHdl, Button *, void)
VclPtr< PushButton > mpApplyButton
Definition: ThemePanel.hxx:51
VclPtr< ListBox > mpListBoxFonts
Definition: ThemePanel.hxx:49
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState, const bool bIsEnabled) override
Definition: ThemePanel.cxx:503