tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / svx / source / sidebar / effect / TextEffectPropertyPanel.hxx
blob5966d407b05547f2a8fa4879a56879a6b0ab044e
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/.
8 */
9 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_EFFECT_TEXTEFFECTPROPERTYPANEL_HXX
10 #define INCLUDED_SVX_SOURCE_SIDEBAR_EFFECT_TEXTEFFECTPROPERTYPANEL_HXX
12 #include <sfx2/sidebar/ControllerItem.hxx>
13 #include <sfx2/sidebar/PanelLayout.hxx>
15 class ColorListBox;
17 namespace svx::sidebar
19 class TextEffectPropertyPanel : public PanelLayout,
20 public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
22 public:
23 TextEffectPropertyPanel(weld::Widget* pParent, SfxBindings* pBindings);
24 virtual ~TextEffectPropertyPanel() override;
26 static std::unique_ptr<PanelLayout> Create(weld::Widget* pParent, SfxBindings* pBindings);
28 virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState,
29 const SfxPoolItem* pState) override;
31 virtual void GetControlState(const sal_uInt16 /*nSId*/,
32 boost::property_tree::ptree& /*rState*/) override{};
34 private:
35 sfx2::sidebar::ControllerItem maTGlowColorController;
36 sfx2::sidebar::ControllerItem maTGlowRadiusController;
37 sfx2::sidebar::ControllerItem maTGlowTransparencyController;
38 std::unique_ptr<weld::Label> mxFTTTransparency;
40 SfxBindings* mpBindings;
42 std::unique_ptr<weld::MetricSpinButton> mxTGlowRadius;
43 std::unique_ptr<ColorListBox> mxLBTGlowColor;
44 std::unique_ptr<weld::MetricSpinButton> mxTGlowTransparency;
45 std::unique_ptr<weld::Label> mxFTTColor;
47 void Initialize();
48 void UpdateControls();
50 DECL_LINK(ModifyTGlowColorHdl, ColorListBox&, void);
51 DECL_LINK(ModifyTGlowRadiusHdl, weld::MetricSpinButton&, void);
52 DECL_LINK(ModifyTGlowTransparencyHdl, weld::MetricSpinButton&, void);
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */