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>
17 #include <svtools/valueset.hxx>
18 #include <svx/ColorSets.hxx>
19 
20 namespace sw::sidebar {
21 
22 class ThemePanel : public PanelLayout,
24 {
25  friend class VclPtr<ThemePanel>;
26 public:
27  static VclPtr<vcl::Window> Create(vcl::Window* pParent,
28  const css::uno::Reference<css::frame::XFrame>& rxFrame);
29 
30  virtual void NotifyItemUpdate(const sal_uInt16 nSId,
31  const SfxItemState eState,
32  const SfxPoolItem* pState) override;
33 
34  virtual void GetControlState(
35  const sal_uInt16 /*nSId*/,
36  boost::property_tree::ptree& /*rState*/) override {};
37 
38 private:
39  ThemePanel(vcl::Window* pParent,
40  const css::uno::Reference<css::frame::XFrame>& rxFrame);
41  virtual ~ThemePanel() override;
42 
43  virtual void dispose() override;
44 
45  std::unique_ptr<weld::TreeView> mxListBoxFonts;
46  std::unique_ptr<ValueSet> mxValueSetColors;
47  std::unique_ptr<weld::CustomWeld> mxValueSetColorsWin;
48  std::unique_ptr<weld::Button> mxApplyButton;
49 
51 
52  DECL_LINK(ClickHdl, weld::Button&, void);
54  DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void);
55  void DoubleClickHdl();
56 
57 };
58 
59 } // end of namespace sw::sidebar
60 
61 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_THEMEPANEL_HXX
62 
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ThemePanel() override
Definition: ThemePanel.cxx:452
static VclPtr< vcl::Window > Create(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)
Definition: ThemePanel.cxx:400
std::unique_ptr< weld::Button > mxApplyButton
Definition: ThemePanel.hxx:48
virtual void dispose() override
Definition: ThemePanel.cxx:457
ThemePanel(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)
Definition: ThemePanel.cxx:411
std::unique_ptr< weld::TreeView > mxListBoxFonts
Definition: ThemePanel.hxx:45
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition: ThemePanel.cxx:501
std::unique_ptr< ValueSet > mxValueSetColors
Definition: ThemePanel.hxx:46
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition: ThemePanel.hxx:34
SfxItemState
std::unique_ptr< weld::CustomWeld > mxValueSetColorsWin
Definition: ThemePanel.hxx:47
svx::ColorSets maColorSets
Definition: ThemePanel.hxx:50
DECL_LINK(ClickHdl, weld::Button &, void)