31 m_xOKBtn->set_sensitive(m_xEDMasterPasswordCrt->get_text().getLength() >= 1);
37 if (m_xEDMasterPasswordCrt->get_text() == m_xEDMasterPasswordRepeat->get_text())
41 OUString aErrorMsg(
Translate::get(STR_ERROR_PASSWORDS_NOT_IDENTICAL, rResLocale));
43 VclMessageType::Warning, VclButtonsType::Ok,
46 m_xEDMasterPasswordCrt->set_text( OUString() );
47 m_xEDMasterPasswordRepeat->set_text( OUString() );
48 m_xEDMasterPasswordCrt->grab_focus();
53 : GenericDialogController(pParent,
"uui/ui/setmasterpassworddlg.ui",
"SetMasterPasswordDialog")
55 , m_xEDMasterPasswordCrt(m_xBuilder->weld_entry(
"password1"))
56 , m_xEDMasterPasswordRepeat(m_xBuilder->weld_entry(
"password2"))
57 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
Reference< XExecutableDialog > m_xDialog
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
std::unique_ptr< weld::Button > m_xOKBtn
virtual ~MasterPasswordCreateDialog() override
MasterPasswordCreateDialog(weld::Window *pParent, const std::locale &rLocale)
std::unique_ptr< weld::Entry > m_xEDMasterPasswordCrt
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(MasterPasswordCreateDialog, EditHdl_Impl, weld::Entry &, void)
OUString get(TranslateId sContextAndId, const std::locale &loc)