ScReplaceWarnBox::ScReplaceWarnBox(weld::Window* pParent)
: MessageDialogController(pParent, u"modules/scalc/ui/checkwarningdialog.ui"_ustr,
u"CheckWarningDialog"_ustr, u"ask"_ustr) // By default, the check box is ON, and the user needs to un-check it to // disable all future warnings.
, m_xWarningOnBox(m_xBuilder->weld_check_button(u"ask"_ustr))
{
m_xDialog->set_default_response(RET_YES);
}
short ScReplaceWarnBox::run()
{ short nRet = RET_YES;
ScModule* pScMod = ScModule::get(); if (pScMod->GetInputOptions().GetReplaceCellsWarn())
{
nRet = MessageDialogController::run(); if (!m_xWarningOnBox->get_active())
{
ScInputOptions aInputOpt(pScMod->GetInputOptions());
aInputOpt.SetReplaceCellsWarn(false);
pScMod->SetInputOptions(aInputOpt);
}
} return nRet;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.15Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.