diff options
Diffstat (limited to 'svx/source/sidebar/possize/PosSizePropertyPanel.cxx')
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 6258eb810f8d..e5cc427a0f2a 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -110,6 +110,7 @@ PosSizePropertyPanel::PosSizePropertyPanel( get( mpFtFlip, "fliplabel" ); get( mpFlipTbx, "selectrotationtype" ); get( mpBtnEditChart, "btnEditChart" ); + get( mArrang, "shaperespectedtotext"); Initialize(); mpBindings->Update( SID_ATTR_METRIC ); @@ -277,12 +278,14 @@ void PosSizePropertyPanel::HandleContextChange( bool bShowAngle = false; bool bShowFlip = false; bool bShowEditChart = false; + bool bShowArrangeShape = false; switch (maContext.GetCombinedContext_DI()) { case CombinedEnumContext(Application::WriterVariants, Context::Draw): bShowAngle = true; bShowFlip = true; + bShowArrangeShape = true; break; case CombinedEnumContext(Application::WriterVariants, Context::Graphic): @@ -342,6 +345,9 @@ void PosSizePropertyPanel::HandleContextChange( // Edit Chart mpBtnEditChart->Show(bShowEditChart); + // Arrange with respect to text + mArrang->Show(bShowArrangeShape); + if (mxSidebar.is()) mxSidebar->requestLayout(); } |