Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / sidebar / ThemePanel.hxx
blob12285286f546dcffc3b99b748fcb82c6d1e8c377
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 */
11 #pragma once
13 #include <sfx2/sidebar/PanelLayout.hxx>
14 #include <sfx2/sidebar/ControllerItem.hxx>
15 #include <svtools/valueset.hxx>
16 #include <svx/ColorSets.hxx>
18 namespace svx { class ThemeColorValueSet; }
20 namespace sw::sidebar
23 class ThemePanel : public PanelLayout,
24 public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
26 public:
27 static std::unique_ptr<PanelLayout> Create(weld::Widget* pParent);
29 ThemePanel(weld::Widget* pParent);
30 virtual ~ThemePanel() override;
32 virtual void NotifyItemUpdate(const sal_uInt16 nSId,
33 const SfxItemState eState,
34 const SfxPoolItem* pState) override;
36 virtual void GetControlState(
37 const sal_uInt16 /*nSId*/,
38 boost::property_tree::ptree& /*rState*/) override {};
40 private:
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;
46 DECL_LINK(ClickHdl, weld::Button&, void);
47 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
48 DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void);
49 void DoubleClickHdl();
53 } // end of namespace sw::sidebar
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */