20#undef SC_DLLIMPLEMENTATION
25 const OUString& sDialogName,
33 : GenericDialogController(pParent,
"modules/scalc/ui/" + sDialogName.toAsciiLowerCase() +
".ui", sDialogName)
34 , m_xEdValue(m_xBuilder->weld_metric_spin_button(
"value",
FieldUnit::
CM))
35 , m_xBtnDefVal(m_xBuilder->weld_check_button(
"default"))
43 m_xEdValue->normalize(nMaximum), FieldUnit::TWIP);
45 sal_Int64 nMin(0), nMax(0);
46 m_xEdValue->get_range(nMin, nMax, FieldUnit::TWIP);
49 m_xEdValue->set_increments(nIncrement / 10, nIncrement, FieldUnit::NONE);
89 if (m_xBtnDefVal->get_active())
91 nCurrentValue = m_xEdValue->get_value(FieldUnit::NONE);
92 m_xEdValue->set_value(nDefaultValue, FieldUnit::NONE);
95 m_xEdValue->set_value(nCurrentValue, FieldUnit::NONE);
100 m_xBtnDefVal->set_active(nDefaultValue == m_xEdValue->get_value(FieldUnit::NONE));
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(ScMetricInputDlg, SetDefValHdl, weld::Toggleable &, void)