tdf#112842: UI enable/disable leadingzeroeslabel

Change-Id: I73c617c1416628d094b8ee5794f43e16b77681d3
Reviewed-on: https://gerrit.libreoffice.org/43058
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 89210a7..859f58d 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 e250634..ce4a720 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;