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