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 OString &rDialogId, const OString &rRelocateId=OString())
 
virtual DialoggetDialog () override
 
virtual ~MessageDialogController () override
 
void set_primary_text (const OUString &rText)
 
OUString get_primary_text () const
 
void set_default_response (int nResponse)
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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 27 of file warnbox.hxx.

Constructor & Destructor Documentation

ScReplaceWarnBox::ScReplaceWarnBox ( weld::Window pParent)

Definition at line 25 of file warnbox.cxx.

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

Member Function Documentation

short ScReplaceWarnBox::run ( )
overridevirtual

Opens dialog if IsDialogEnabled() returns true.

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

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

Definition at line 29 of file warnbox.hxx.

Referenced by run().


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