diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:03:16 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-21 13:19:17 +0100 |
commit | 01baeab99890e5650b3dabc15f8d900490a5a133 (patch) | |
tree | 64a1b30b20a53262605312fff4d035876fc7c811 /include/svx/frmdirlbox.hxx | |
parent | 0108cd51faf942b3fc3a292522d4b2f421f1cf45 (diff) |
tdf#123936 Formatting files in module include with clang-format
Change-Id: I0507dd797cd5a35e0ae14f4b69ee4e172d08a71a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105681
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'include/svx/frmdirlbox.hxx')
-rw-r--r-- | include/svx/frmdirlbox.hxx | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/include/svx/frmdirlbox.hxx b/include/svx/frmdirlbox.hxx index 4a508eea55bd..84160d84665e 100644 --- a/include/svx/frmdirlbox.hxx +++ b/include/svx/frmdirlbox.hxx @@ -24,8 +24,8 @@ #include <editeng/frmdir.hxx> #include <svx/svxdllapi.h> -namespace svx { - +namespace svx +{ /** This listbox contains entries to select horizontal text direction. The control works on the SvxFrameDirection enumeration (i.e. left-to-right, @@ -35,14 +35,21 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FrameDirectionListBox { private: std::unique_ptr<weld::ComboBox> m_xControl; + public: explicit FrameDirectionListBox(std::unique_ptr<weld::ComboBox> pControl); virtual ~FrameDirectionListBox(); bool get_visible() const { return m_xControl->get_visible(); } void save_value() { m_xControl->save_value(); } bool get_value_changed_from_saved() const { return m_xControl->get_value_changed_from_saved(); } - SvxFrameDirection get_active_id() const { return static_cast<SvxFrameDirection>(m_xControl->get_active_id().toUInt32()); } - void set_active_id(SvxFrameDirection eDir) { m_xControl->set_active_id(OUString::number(static_cast<sal_uInt32>(eDir))); } + SvxFrameDirection get_active_id() const + { + return static_cast<SvxFrameDirection>(m_xControl->get_active_id().toUInt32()); + } + void set_active_id(SvxFrameDirection eDir) + { + m_xControl->set_active_id(OUString::number(static_cast<sal_uInt32>(eDir))); + } void remove_id(SvxFrameDirection eDir) { int nPos = m_xControl->find_id(OUString::number(static_cast<sal_uInt32>(eDir))); @@ -61,9 +68,11 @@ public: { m_xControl->append(OUString::number(static_cast<sal_uInt32>(eDirection)), rString); } - void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_xControl->connect_changed(rLink); } + void connect_changed(const Link<weld::ComboBox&, void>& rLink) + { + m_xControl->connect_changed(rLink); + } }; - } #endif |