LibreOffice Module sc (master) 1
|
Warning box for "Replace cell contents?". More...
#include <warnbox.hxx>
Public Member Functions | |
ScReplaceWarnBox (weld::Window *pParent) | |
virtual short | run () override |
Opens dialog if IsDialogEnabled() returns true. More... | |
Public Member Functions inherited from weld::MessageDialogController | |
MessageDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, const OUString &rRelocateId={}) | |
virtual Dialog * | getDialog () override |
virtual | ~MessageDialogController () override |
void | set_primary_text (const OUString &rText) |
OUString | get_primary_text () const |
void | set_secondary_text (const OUString &rText) |
OUString | get_secondary_text () const |
void | set_default_response (int nResponse) |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Attributes | |
std::unique_ptr< weld::CheckButton > | m_xWarningOnBox |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::MessageDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::MessageDialog > | m_xDialog |
std::unique_ptr< weld::Container > | m_xContentArea |
std::unique_ptr< weld::Widget > | m_xRelocate |
std::unique_ptr< weld::Container > | m_xOrigParent |
Warning box for "Replace cell contents?".
With warning image and "Do not show again" checkbox.
Definition at line 26 of file warnbox.hxx.
ScReplaceWarnBox::ScReplaceWarnBox | ( | weld::Window * | pParent | ) |
Definition at line 25 of file warnbox.cxx.
References weld::MessageDialogController::m_xDialog, and RET_YES.
|
overridevirtual |
Opens dialog if IsDialogEnabled() returns true.
@descr If after executing the dialog the checkbox "Do not show again" is set, the method DisableDialog() will be called.
Reimplemented from weld::DialogController.
Definition at line 35 of file warnbox.cxx.
References ScModule::GetInputOptions(), m_xWarningOnBox, RET_YES, SC_MOD, ScModule::SetInputOptions(), and ScInputOptions::SetReplaceCellsWarn().
Referenced by ScImportExport::ExtText2Doc().
|
private |
Definition at line 28 of file warnbox.hxx.
Referenced by run().