LibreOffice Module svx (master)  1
TextColumnsPropertyPanel.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 #pragma once
11 
14 
15 class ColorListBox;
16 
17 namespace svx::sidebar
18 {
21 {
22 public:
24  virtual ~TextColumnsPropertyPanel() override;
25 
26  static std::unique_ptr<PanelLayout> Create(weld::Widget* pParent, SfxBindings* pBindings);
27 
28  virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState,
29  const SfxPoolItem* pState) override;
30 
31  virtual void GetControlState(const sal_uInt16 /*nSId*/,
32  boost::property_tree::ptree& /*rState*/) override{};
33 
34 private:
36 
37  std::unique_ptr<weld::SpinButton> m_xColumnsNumber;
38  std::unique_ptr<weld::MetricSpinButton> m_xColumnsSpacing;
39 
42 
43  DECL_LINK(ModifyColumnsNumberHdl, weld::SpinButton&, void);
44  DECL_LINK(ModifyColumnsSpacingHdl, weld::MetricSpinButton&, void);
45 };
46 }
47 
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
std::unique_ptr< weld::SpinButton > m_xColumnsNumber
sfx2::sidebar::ControllerItem maColumnsNumberController
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
std::unique_ptr< weld::MetricSpinButton > m_xColumnsSpacing
SfxItemState
DECL_LINK(ModifyColumnsNumberHdl, weld::SpinButton &, void)
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
TextColumnsPropertyPanel(weld::Widget *pParent, SfxBindings *pBindings)
sfx2::sidebar::ControllerItem maColumnsSpacingController