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#pragma once
12
15#include <svtools/valueset.hxx>
16#include <svx/ColorSets.hxx>
17
18namespace svx { class ThemeColorValueSet; }
19
20namespace sw::sidebar
21{
22
23class ThemePanel : public PanelLayout,
25{
26public:
27 static std::unique_ptr<PanelLayout> Create(weld::Widget* pParent);
28
29 ThemePanel(weld::Widget* pParent);
30 virtual ~ThemePanel() override;
31
32 virtual void NotifyItemUpdate(const sal_uInt16 nSId,
33 const SfxItemState eState,
34 const SfxPoolItem* pState) override;
35
36 virtual void GetControlState(
37 const sal_uInt16 /*nSId*/,
38 boost::property_tree::ptree& /*rState*/) override {};
39
40private:
41 std::unique_ptr<weld::TreeView> mxListBoxFonts;
42 std::unique_ptr<svx::ThemeColorValueSet> mxValueSetColors;
43 std::unique_ptr<weld::CustomWeld> mxValueSetColorsWin;
44 std::unique_ptr<weld::Button> mxApplyButton;
45
46 DECL_LINK(ClickHdl, weld::Button&, void);
48 DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void);
49 void DoubleClickHdl();
50
51};
52
53} // end of namespace sw::sidebar
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::TreeView > mxListBoxFonts
Definition: ThemePanel.hxx:38
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition: ThemePanel.hxx:36
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition: ThemePanel.cxx:103
virtual ~ThemePanel() override
Definition: ThemePanel.cxx:62
DECL_LINK(ClickHdl, weld::Button &, void)
std::unique_ptr< svx::ThemeColorValueSet > mxValueSetColors
Definition: ThemePanel.hxx:42
DECL_LINK(DoubleClickValueSetHdl, ValueSet *, void)
std::unique_ptr< weld::CustomWeld > mxValueSetColorsWin
Definition: ThemePanel.hxx:43
std::unique_ptr< weld::Button > mxApplyButton
Definition: ThemePanel.hxx:44
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent)
Definition: ThemePanel.cxx:29
ThemePanel(weld::Widget *pParent)
Definition: ThemePanel.cxx:37
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
SfxItemState