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

Dialog for editing a name. More...

#include <dlgname.hxx>

Inheritance diagram for SvxNameDialog:
Collaboration diagram for SvxNameDialog:

Public Member Functions

 SvxNameDialog (weld::Window *pWindow, const OUString &rName, const OUString &rDesc)
OUString GetName () const
void SetCheckNameHdl (const Link< SvxNameDialog &, bool > &rLink, bool bCheckImmediately)
 add a callback Link that is called whenever the content of the edit field is changed. More...
void SetEditHelpId (const OString &aHelpId)
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
virtual DialoggetDialog () override
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
virtual short run ()
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 Member Functions

 DECL_LINK (ModifyHdl, weld::Entry &, void)

Private Attributes

std::unique_ptr< weld::Entrym_xEdtName
std::unique_ptr< weld::Labelm_xFtDescription
std::unique_ptr< weld::Buttonm_xBtnOK
Link< SvxNameDialog &, bool > m_aCheckNameHdl

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

Dialog for editing a name.

Definition at line 25 of file dlgname.hxx.

Constructor & Destructor Documentation

SvxNameDialog::SvxNameDialog ( weld::Window pWindow,
const OUString &  rName,
const OUString &  rDesc 

Definition at line 28 of file dlgname.cxx.

References LINK, m_xEdtName, and m_xFtDescription.

Member Function Documentation

SvxNameDialog::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
OUString SvxNameDialog::GetName ( ) const

Definition at line 39 of file dlgname.hxx.

Referenced by IMPL_LINK().

void SvxNameDialog::SetCheckNameHdl ( const Link< SvxNameDialog &, bool > &  rLink,
bool  bCheckImmediately 

add a callback Link that is called whenever the content of the edit field is changed.

The Link result determines whether the OK Button is enabled (> 0) or disabled (== 0).

rLinka Callback declared with DECL_LINK and implemented with IMPL_LINK, that is executed on modification.
bCheckImmediatelyIf true, the Link is called directly after setting it. It is recommended to set this flag to true to avoid an inconsistent state if the initial String (given in the CTOR) does not satisfy the check condition.

Definition at line 56 of file dlgname.hxx.

References Link< class, class >::Call().

void SvxNameDialog::SetEditHelpId ( const OString &  aHelpId)

Definition at line 63 of file dlgname.hxx.

Member Data Documentation

Link<SvxNameDialog&,bool> SvxNameDialog::m_aCheckNameHdl

Definition at line 32 of file dlgname.hxx.

std::unique_ptr<weld::Button> SvxNameDialog::m_xBtnOK

Definition at line 30 of file dlgname.hxx.

std::unique_ptr<weld::Entry> SvxNameDialog::m_xEdtName

Definition at line 28 of file dlgname.hxx.

Referenced by SvxNameDialog().

std::unique_ptr<weld::Label> SvxNameDialog::m_xFtDescription

Definition at line 29 of file dlgname.hxx.

Referenced by SvxNameDialog().

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