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 OUString &aHelpId) |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
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 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::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 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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Dialog for editing a name.
Definition at line 26 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 |
Definition at line 41 of file dlgname.hxx.
Referenced by IMPL_LINK().
|
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 58 of file dlgname.hxx.
References Link< typename Arg, typename Ret >::Call().
|
inline |
Definition at line 65 of file dlgname.hxx.
References Link< typename Arg, typename Ret >::Call().
|
inline |
Definition at line 71 of file dlgname.hxx.
|
private |
Definition at line 33 of file dlgname.hxx.
|
private |
Definition at line 34 of file dlgname.hxx.
|
private |
Definition at line 31 of file dlgname.hxx.
|
private |
Definition at line 29 of file dlgname.hxx.
Referenced by SvxNameDialog().
|
private |
Definition at line 30 of file dlgname.hxx.
Referenced by SvxNameDialog().