From 90e73c8cb949e2ef96e9a77b2208f53e5feab3ab Mon Sep 17 00:00:00 2001 From: andreas kainz Date: Tue, 21 Apr 2020 15:02:42 +0200 Subject: tdf#130156 add alignment commands to the sidebar Change-Id: I302acc25b65ef20a0338401e763d400076f6e36d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92634 Tested-by: Jenkins Reviewed-by: andreas_kainz --- svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 8 ++++++++ svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'svx/source') diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 24e7b8b205b2..0ca21527d89e 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -76,6 +76,10 @@ PosSizePropertyPanel::PosSizePropertyPanel( mxArrangeDispatch(new ToolbarUnoDispatcher(*mxArrangeTbx, *m_xBuilder, rxFrame)), mxArrangeTbx2(m_xBuilder->weld_toolbar("arrangetoolbar2")), mxArrangeDispatch2(new ToolbarUnoDispatcher(*mxArrangeTbx2, *m_xBuilder, rxFrame)), + mxAlignTbx(m_xBuilder->weld_toolbar("aligntoolbar")), + mxAlignDispatch(new ToolbarUnoDispatcher(*mxAlignTbx, *m_xBuilder, rxFrame)), + mxAlignTbx2(m_xBuilder->weld_toolbar("aligntoolbar2")), + mxAlignDispatch2(new ToolbarUnoDispatcher(*mxAlignTbx2, *m_xBuilder, rxFrame)), mxBtnEditChart(m_xBuilder->weld_button("btnEditChart")), maRect(), mpView(nullptr), @@ -138,6 +142,10 @@ void PosSizePropertyPanel::dispose() mxFtFlip.reset(); mxFlipDispatch.reset(); mxFlipTbx.reset(); + mxAlignDispatch.reset(); + mxAlignDispatch2.reset(); + mxAlignTbx.reset(); + mxAlignTbx2.reset(); mxArrangeDispatch.reset(); mxArrangeDispatch2.reset(); mxArrangeTbx.reset(); diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index 2c78dd033253..bf5f1ff7e8ae 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -112,6 +112,11 @@ private: std::unique_ptr mxArrangeTbx2; std::unique_ptr mxArrangeDispatch2; + std::unique_ptr mxAlignTbx; + std::unique_ptr mxAlignDispatch; + std::unique_ptr mxAlignTbx2; + std::unique_ptr mxAlignDispatch2; + //edit charts button for online's mobile view std::unique_ptr mxBtnEditChart; -- cgit