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

#include <mtrindlg.hxx>

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

Public Member Functions

 ScMetricInputDlg (weld::Window *pParent, const OUString &sDialogName, tools::Long nCurrent, tools::Long nDefault, FieldUnit eFUnit, sal_uInt16 nDecimals, tools::Long nMaximum, tools::Long nMinimum)
 
virtual ~ScMetricInputDlg () override
 
int GetInputValue () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- 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 Member Functions

 DECL_LINK (SetDefValHdl, weld::Toggleable &, void)
 
 DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void)
 

Private Attributes

std::unique_ptr< weld::MetricSpinButtonm_xEdValue
 
std::unique_ptr< weld::CheckButtonm_xBtnDefVal
 
int nDefaultValue
 
int nCurrentValue
 

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::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 24 of file mtrindlg.hxx.

Constructor & Destructor Documentation

◆ ScMetricInputDlg()

ScMetricInputDlg::ScMetricInputDlg ( weld::Window pParent,
const OUString &  sDialogName,
tools::Long  nCurrent,
tools::Long  nDefault,
FieldUnit  eFUnit,
sal_uInt16  nDecimals,
tools::Long  nMaximum,
tools::Long  nMinimum 
)

Definition at line 24 of file mtrindlg.cxx.

References CM, LINK, m_xBtnDefVal, m_xEdValue, nCurrentValue, and nDefaultValue.

◆ ~ScMetricInputDlg()

ScMetricInputDlg::~ScMetricInputDlg ( )
overridevirtual

Definition at line 57 of file mtrindlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/2]

ScMetricInputDlg::DECL_LINK ( ModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [2/2]

ScMetricInputDlg::DECL_LINK ( SetDefValHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetInputValue()

int ScMetricInputDlg::GetInputValue ( ) const

Definition at line 61 of file mtrindlg.cxx.

References m_xEdValue.

Member Data Documentation

◆ m_xBtnDefVal

std::unique_ptr<weld::CheckButton> ScMetricInputDlg::m_xBtnDefVal
private

Definition at line 41 of file mtrindlg.hxx.

Referenced by ScMetricInputDlg().

◆ m_xEdValue

std::unique_ptr<weld::MetricSpinButton> ScMetricInputDlg::m_xEdValue
private

Definition at line 40 of file mtrindlg.hxx.

Referenced by GetInputValue(), and ScMetricInputDlg().

◆ nCurrentValue

int ScMetricInputDlg::nCurrentValue
private

Definition at line 43 of file mtrindlg.hxx.

Referenced by ScMetricInputDlg().

◆ nDefaultValue

int ScMetricInputDlg::nDefaultValue
private

Definition at line 42 of file mtrindlg.hxx.

Referenced by ScMetricInputDlg().


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