summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2017-10-03 00:38:26 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-10-03 22:38:21 +0200
commit13a27860ae79ee8ac9c96b8beb6d3d7aa56a9d94 (patch)
treee15488bfc1cc2e6af13b1a5552c91262379f2cad
parent6f581504b77cf780898ffb568a66d4aa86df1c73 (diff)
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>
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx4
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx1
2 files changed, 5 insertions, 0 deletions
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;