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) override;
40 
41 private:
42  ThemePanel(vcl::Window* pParent,
43  const css::uno::Reference<css::frame::XFrame>& rxFrame);
44  virtual ~ThemePanel() override;
45 
46  virtual void dispose() override;
47 
51 
53 
54  DECL_LINK(ClickHdl, Button*, void);
56  DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void);
57  void DoubleClickHdl();
58 
59 };
60 
61 }} // end of namespace sw::sidebar
62 
63 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
64 
65 /* 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.
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:49
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition: ThemePanel.cxx:503
SfxItemState
svx::ColorSets maColorSets
Definition: ThemePanel.hxx:52
DECL_LINK(ClickHdl, Button *, void)
VclPtr< PushButton > mpApplyButton
Definition: ThemePanel.hxx:50
VclPtr< ListBox > mpListBoxFonts
Definition: ThemePanel.hxx:48