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

Xisco Fauli anistenis at gmail.com
Tue Oct 3 20:38:46 UTC 2017


 sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx |    4 ++++
 sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit 13a27860ae79ee8ac9c96b8beb6d3d7aa56a9d94
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Tue Oct 3 00:38:26 2017 +0200

    tdf#112842: UI enable/disable leadingzeroeslabel
    
    Change-Id: I73c617c1416628d094b8ee5794f43e16b77681d3
    Reviewed-on: https://gerrit.libreoffice.org/43058
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 89210a7a53a3..859f58d72f7f 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -53,6 +53,7 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel(
     get(mpEdDecimals,     "decimalplaces");
     get(mpFtDenominator,  "denominatorplaceslabel");
     get(mpEdDenominator,  "denominatorplaces");
+    get(mpFtLeadZeroes,   "leadingzeroeslabel");
     get(mpEdLeadZeroes,   "leadingzeroes");
     get(mpBtnNegRed,      "negativenumbersred");
     get(mpBtnThousand,    "thousandseparator");
@@ -74,6 +75,7 @@ void NumberFormatPropertyPanel::dispose()
     mpEdDecimals.clear();
     mpFtDenominator.clear();
     mpEdDenominator.clear();
+    mpFtLeadZeroes.clear();
     mpEdLeadZeroes.clear();
     mpBtnNegRed.clear();
     mpBtnThousand.clear();
@@ -220,6 +222,7 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
                     mpEdDecimals->Show(!bIsFraction);
                     mpFtDecimals->Enable(!bIsFraction);
                     mpEdDecimals->Enable(!bIsFraction);
+                    mpFtLeadZeroes->Enable();
                     mpEdLeadZeroes->Enable();
                 }
                 else
@@ -294,6 +297,7 @@ void NumberFormatPropertyPanel::DisableControls()
     mpEdDecimals->Show();
     mpFtDecimals->Disable();
     mpEdDecimals->Disable();
+    mpFtLeadZeroes->Disable();
     mpEdLeadZeroes->Disable();
 }
 
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
index e250634cd4fb..ce4a7203e91c 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
@@ -71,6 +71,7 @@ private:
     VclPtr<NumericField>                           mpEdDecimals;
     VclPtr<FixedText>                              mpFtDenominator;
     VclPtr<NumericField>                           mpEdDenominator;
+    VclPtr<FixedText>                              mpFtLeadZeroes;
     VclPtr<NumericField>                           mpEdLeadZeroes;
     VclPtr<CheckBox>                               mpBtnNegRed;
     VclPtr<CheckBox>                               mpBtnThousand;


More information about the Libreoffice-commits mailing list