36 css::task::PasswordRequestMode nDialogMode,
37 const std::locale& rLocale
39 : GenericDialogController(pParent,
"uui/ui/masterpassworddlg.ui",
"MasterPasswordDialog")
40 , m_xEDMasterPassword(m_xBuilder->weld_entry(
"password"))
41 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
43 if( nDialogMode == css::task::PasswordRequestMode_PASSWORD_REENTER )
45 OUString aErrorMsg(
Translate::get(STR_ERROR_MASTERPASSWORD_WRONG, rLocale));
47 VclMessageType::Warning, VclButtonsType::Ok, aErrorMsg));
Reference< XExecutableDialog > m_xDialog
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
MasterPasswordDialog(weld::Window *pParent, css::task::PasswordRequestMode nDlgMode, const std::locale &rLocale)
std::unique_ptr< weld::Button > m_xOKBtn
virtual ~MasterPasswordDialog() override
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(MasterPasswordDialog, OKHdl_Impl, weld::Button &, void)
OUString get(TranslateId sContextAndId, const std::locale &loc)