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:
[legend]
Collaboration diagram for SvxNameDialog:
[legend]

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 ,
void   
)
private
OUString SvxNameDialog::GetName ( ) const
inline

Definition at line 39 of file dlgname.hxx.

Referenced by IMPL_LINK().

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

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).

Parameters
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)
inline

Definition at line 63 of file dlgname.hxx.

Member Data Documentation

Link<SvxNameDialog&,bool> SvxNameDialog::m_aCheckNameHdl
private

Definition at line 32 of file dlgname.hxx.

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

Definition at line 30 of file dlgname.hxx.

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

Definition at line 28 of file dlgname.hxx.

Referenced by SvxNameDialog().

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

Definition at line 29 of file dlgname.hxx.

Referenced by SvxNameDialog().


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