Kaydet (Commit) 13a27860 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Katarina Behrens

tdf#112842: UI enable/disable leadingzeroeslabel

Change-Id: I73c617c1416628d094b8ee5794f43e16b77681d3
Reviewed-on: https://gerrit.libreoffice.org/43058Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 6f581504
...@@ -53,6 +53,7 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel( ...@@ -53,6 +53,7 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel(
get(mpEdDecimals, "decimalplaces"); get(mpEdDecimals, "decimalplaces");
get(mpFtDenominator, "denominatorplaceslabel"); get(mpFtDenominator, "denominatorplaceslabel");
get(mpEdDenominator, "denominatorplaces"); get(mpEdDenominator, "denominatorplaces");
get(mpFtLeadZeroes, "leadingzeroeslabel");
get(mpEdLeadZeroes, "leadingzeroes"); get(mpEdLeadZeroes, "leadingzeroes");
get(mpBtnNegRed, "negativenumbersred"); get(mpBtnNegRed, "negativenumbersred");
get(mpBtnThousand, "thousandseparator"); get(mpBtnThousand, "thousandseparator");
...@@ -74,6 +75,7 @@ void NumberFormatPropertyPanel::dispose() ...@@ -74,6 +75,7 @@ void NumberFormatPropertyPanel::dispose()
mpEdDecimals.clear(); mpEdDecimals.clear();
mpFtDenominator.clear(); mpFtDenominator.clear();
mpEdDenominator.clear(); mpEdDenominator.clear();
mpFtLeadZeroes.clear();
mpEdLeadZeroes.clear(); mpEdLeadZeroes.clear();
mpBtnNegRed.clear(); mpBtnNegRed.clear();
mpBtnThousand.clear(); mpBtnThousand.clear();
...@@ -220,6 +222,7 @@ void NumberFormatPropertyPanel::NotifyItemUpdate( ...@@ -220,6 +222,7 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
mpEdDecimals->Show(!bIsFraction); mpEdDecimals->Show(!bIsFraction);
mpFtDecimals->Enable(!bIsFraction); mpFtDecimals->Enable(!bIsFraction);
mpEdDecimals->Enable(!bIsFraction); mpEdDecimals->Enable(!bIsFraction);
mpFtLeadZeroes->Enable();
mpEdLeadZeroes->Enable(); mpEdLeadZeroes->Enable();
} }
else else
...@@ -294,6 +297,7 @@ void NumberFormatPropertyPanel::DisableControls() ...@@ -294,6 +297,7 @@ void NumberFormatPropertyPanel::DisableControls()
mpEdDecimals->Show(); mpEdDecimals->Show();
mpFtDecimals->Disable(); mpFtDecimals->Disable();
mpEdDecimals->Disable(); mpEdDecimals->Disable();
mpFtLeadZeroes->Disable();
mpEdLeadZeroes->Disable(); mpEdLeadZeroes->Disable();
} }
......
...@@ -71,6 +71,7 @@ private: ...@@ -71,6 +71,7 @@ private:
VclPtr<NumericField> mpEdDecimals; VclPtr<NumericField> mpEdDecimals;
VclPtr<FixedText> mpFtDenominator; VclPtr<FixedText> mpFtDenominator;
VclPtr<NumericField> mpEdDenominator; VclPtr<NumericField> mpEdDenominator;
VclPtr<FixedText> mpFtLeadZeroes;
VclPtr<NumericField> mpEdLeadZeroes; VclPtr<NumericField> mpEdLeadZeroes;
VclPtr<CheckBox> mpBtnNegRed; VclPtr<CheckBox> mpBtnNegRed;
VclPtr<CheckBox> mpBtnThousand; VclPtr<CheckBox> mpBtnThousand;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment