12#include <officecfg/Office/Calc.hxx>
60 : GenericDialogController(pParent,
"modules/scalc/ui/formulacalculationoptions.ui",
"FormulaCalculationOptions")
62 , mbSelectedEmptyStringAsZero(rConfig.mbEmptyStringAsZero)
63 , mbWriteConfig(bWriteConfig)
64 , mxEmptyAsZero(m_xBuilder->weld_check_button(
"checkEmptyAsZero"))
65 , mxConversion(m_xBuilder->weld_combo_box(
"comboConversion"))
66 , mxCurrentDocOnly(m_xBuilder->weld_check_button(
"current_doc"))
67 , mxSyntax(m_xBuilder->weld_combo_box(
"comboSyntaxRef"))
71 mxConversion->set_sensitive( !officecfg::Office::Calc::Formula::Syntax::StringConversion::isReadOnly() );
76 mxEmptyAsZero->set_sensitive ( !officecfg::Office::Calc::Formula::Syntax::EmptyStringAsZero::isReadOnly() );
80 mxSyntax->set_sensitive ( !officecfg::Office::Calc::Formula::Syntax::StringRefAddressSyntax::isReadOnly() );
116 maConfig.mbEmptyStringAsZero = mbSelectedEmptyStringAsZero = rCheckBox.get_active();
122 CoupleEmptyAsZeroToStringConversion();
127 maConfig.SetStringRefSyntax(toAddressConvention(rSyntax.get_active()));
132 mbWriteConfig = !rCheckBox.get_active();
IMPL_LINK(ScCalcOptionsDialog, AsZeroModifiedHdl, weld::Toggleable &, rCheckBox, void)
std::unique_ptr< weld::ComboBox > mxSyntax
std::unique_ptr< weld::CheckButton > mxEmptyAsZero
void CoupleEmptyAsZeroToStringConversion()
ScCalcOptionsDialog(weld::Window *pParent, const ScCalcConfig &rConfig, bool bWriteConfig)
std::unique_ptr< weld::ComboBox > mxConversion
virtual ~ScCalcOptionsDialog() override
bool mbSelectedEmptyStringAsZero
std::unique_ptr< weld::CheckButton > mxCurrentDocOnly
#define LINK(Instance, Class, Member)
Configuration options for formula interpreter.
StringConversion meStringConversion
@ UNAMBIGUOUS
=1+"1" gives 2, but =1+"1.000" or =1+"x" give VALUE!
@ LOCALE
=1+"1.000" may be 2 or 1001 ... =1+"x" gives VALUE!
@ ILLEGAL
=1+"1" or =1+"x" give VALUE!
@ ZERO
=1+"1" or =1+"x" give 1
formula::FormulaGrammar::AddressConvention meStringRefAddressSyntax