[Libreoffice-commits] core.git: sd/source

Katarina Behrens Katarina.Behrens at cib.de
Tue Oct 3 20:35:28 UTC 2017


 sd/source/ui/sidebar/SlideBackground.cxx |   63 ++++++++++++++++---------------
 1 file changed, 34 insertions(+), 29 deletions(-)

New commits:
commit 6f581504b77cf780898ffb568a66d4aa86df1c73
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date:   Mon Oct 2 22:02:55 2017 +0200

    tdf#109100: Hide margine control in Impress
    
    Change-Id: I6f3453ce309d70f444063f17b3109cc91a50823f
    Reviewed-on: https://gerrit.libreoffice.org/43056
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index fcd11edcb44e..f98e5bed6894 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -228,36 +228,41 @@ void SlideBackground::HandleContextChange(
         return;
     maContext = rContext;
 
-    if ( maContext == maImpressMasterContext )
+    if ( IsImpress() )
     {
-        mpCloseMaster->Show();
-        mpEditMaster->Hide();
-        mpMasterSlide->Disable();
-        mpDspMasterBackground->Disable();
-        mpDspMasterObjects->Disable();
-        mpFillStyle->Show();
-        mpBackgroundLabel->Show();
-        mpInsertImage->Show();
-    }
-    else if ( maContext == maImpressHandoutContext )
-    {
-        mpFillStyle->Hide();
-        mpFillLB->Hide();
-        mpFillAttr->Hide();
-        mpFillGrad->Hide();
-        mpBackgroundLabel->Hide();
-        mpInsertImage->Hide();
-    }
-    else if (maContext == maImpressOtherContext )
-    {
-        mpCloseMaster->Hide();
-        mpEditMaster->Show();
-        mpMasterSlide->Enable();
-        mpDspMasterBackground->Enable();
-        mpDspMasterObjects->Enable();
-        mpFillStyle->Show();
-        mpBackgroundLabel->Show();
-        mpInsertImage->Show();
+        mpMarginSelectBox->Hide();
+
+        if ( maContext == maImpressMasterContext )
+        {
+            mpCloseMaster->Show();
+            mpEditMaster->Hide();
+            mpMasterSlide->Disable();
+            mpDspMasterBackground->Disable();
+            mpDspMasterObjects->Disable();
+            mpFillStyle->Show();
+            mpBackgroundLabel->Show();
+            mpInsertImage->Show();
+        }
+        else if ( maContext == maImpressHandoutContext )
+        {
+            mpFillStyle->Hide();
+            mpFillLB->Hide();
+            mpFillAttr->Hide();
+            mpFillGrad->Hide();
+            mpBackgroundLabel->Hide();
+            mpInsertImage->Hide();
+        }
+        else if (maContext == maImpressOtherContext )
+        {
+            mpCloseMaster->Hide();
+            mpEditMaster->Show();
+            mpMasterSlide->Enable();
+            mpDspMasterBackground->Enable();
+            mpDspMasterObjects->Enable();
+            mpFillStyle->Show();
+            mpBackgroundLabel->Show();
+            mpInsertImage->Show();
+        }
     }
     // else Draw or something else, do nothing
 }


More information about the Libreoffice-commits mailing list