LibreOffice Module cui (master) 1
|
Dialog for editing a name. More...
#include <dlgname.hxx>
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 OString &aHelpId) |
![]() | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
![]() | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::Entry > | m_xEdtName |
std::unique_ptr< weld::Label > | m_xFtDescription |
std::unique_ptr< weld::Button > | m_xBtnOK |
Link< SvxNameDialog &, bool > | m_aCheckNameHdl |
Link< SvxNameDialog &, OUString > | m_aCheckNameTooltipHdl |
Additional Inherited Members | |
![]() | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
![]() | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Dialog for editing a name.
Definition at line 24 of file dlgname.hxx.
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.
|
private |
|
inline |
|
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).
rLink | a Callback declared with DECL_DLLPRIVATE_LINK and implemented with IMPL_LINK, that is executed on modification. |
bCheckImmediately | If 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< typename Arg, typename Ret >::Call(), m_aCheckNameHdl, and m_xBtnOK.
|
inline |
Definition at line 63 of file dlgname.hxx.
References Link< typename Arg, typename Ret >::Call(), m_aCheckNameTooltipHdl, and m_xBtnOK.
|
inline |
Definition at line 69 of file dlgname.hxx.
References m_xEdtName.
|
private |
Definition at line 31 of file dlgname.hxx.
Referenced by SetCheckNameHdl().
|
private |
Definition at line 32 of file dlgname.hxx.
Referenced by SetCheckNameTooltipHdl().
|
private |
Definition at line 29 of file dlgname.hxx.
Referenced by SetCheckNameHdl(), and SetCheckNameTooltipHdl().
|
private |
Definition at line 27 of file dlgname.hxx.
Referenced by GetName(), SetEditHelpId(), and SvxNameDialog().
|
private |
Definition at line 28 of file dlgname.hxx.
Referenced by SvxNameDialog().