LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScReplaceWarnBox Class Reference

Warning box for "Replace cell contents?". More...

#include <warnbox.hxx>

Inheritance diagram for ScReplaceWarnBox:
[legend]
Collaboration diagram for ScReplaceWarnBox:
[legend]

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 DialoggetDialog () 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 DialoggetDialog ()=0
 
const DialoggetConstDialog () 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::CheckButtonm_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::Builderm_xBuilder
 
std::unique_ptr< weld::MessageDialogm_xDialog
 
std::unique_ptr< weld::Containerm_xContentArea
 
std::unique_ptr< weld::Widgetm_xRelocate
 
std::unique_ptr< weld::Containerm_xOrigParent
 

Detailed Description

Warning box for "Replace cell contents?".

With warning image and "Do not show again" checkbox.

Definition at line 26 of file warnbox.hxx.

Constructor & Destructor Documentation

◆ ScReplaceWarnBox()

ScReplaceWarnBox::ScReplaceWarnBox ( weld::Window pParent)

Definition at line 25 of file warnbox.cxx.

References weld::MessageDialogController::m_xDialog, and RET_YES.

Member Function Documentation

◆ run()

short ScReplaceWarnBox::run ( )
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().

Member Data Documentation

◆ m_xWarningOnBox

std::unique_ptr<weld::CheckButton> ScReplaceWarnBox::m_xWarningOnBox
private

Definition at line 28 of file warnbox.hxx.

Referenced by run().


The documentation for this class was generated from the following files: