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

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 SetCheckNameTooltipHdl (const Link< SvxNameDialog &, OUString > &rLink)
 
void SetEditHelpId (const OUString &aHelpId)
 
- 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 (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
 
Link< SvxNameDialog &, OUString > m_aCheckNameTooltipHdl
 

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 26 of file dlgname.hxx.

Constructor & Destructor Documentation

◆ SvxNameDialog()

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

◆ DECL_LINK()

SvxNameDialog::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ GetName()

OUString SvxNameDialog::GetName ( ) const
inline

Definition at line 41 of file dlgname.hxx.

Referenced by IMPL_LINK().

◆ SetCheckNameHdl()

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_DLLPRIVATE_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 58 of file dlgname.hxx.

References Link< typename Arg, typename Ret >::Call().

◆ SetCheckNameTooltipHdl()

void SvxNameDialog::SetCheckNameTooltipHdl ( const Link< SvxNameDialog &, OUString > &  rLink)
inline

Definition at line 65 of file dlgname.hxx.

References Link< typename Arg, typename Ret >::Call().

◆ SetEditHelpId()

void SvxNameDialog::SetEditHelpId ( const OUString &  aHelpId)
inline

Definition at line 71 of file dlgname.hxx.

Member Data Documentation

◆ m_aCheckNameHdl

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

Definition at line 33 of file dlgname.hxx.

◆ m_aCheckNameTooltipHdl

Link<SvxNameDialog&, OUString> SvxNameDialog::m_aCheckNameTooltipHdl
private

Definition at line 34 of file dlgname.hxx.

◆ m_xBtnOK

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

Definition at line 31 of file dlgname.hxx.

◆ m_xEdtName

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

Definition at line 29 of file dlgname.hxx.

Referenced by SvxNameDialog().

◆ m_xFtDescription

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

Definition at line 30 of file dlgname.hxx.

Referenced by SvxNameDialog().


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