summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/filedlghelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-27 10:11:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-27 17:25:59 +0100
commit9fcef57a34dbd88a98621dfaf8668fa076dd98f1 (patch)
tree844e9ca54e0b30faf1b71b42397b4a8143460a43 /sfx2/source/dialog/filedlghelper.cxx
parentaa4548d1f91e15b8711bbcbd2ad939247579f9a8 (diff)
convert Redline warning dialog to .ui to get helpids
etc. Change-Id: Ic5e6031fe99347f19002d5d8527b5632333fefb0 Reviewed-on: https://gerrit.libreoffice.org/50431 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog/filedlghelper.cxx')
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 32249bd1db6b..33404ae1ca2d 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -2692,10 +2692,11 @@ ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter,
{
break;
}
- ScopedVclPtrInstance<MessBox>(Application::GetDefDialogParent(),
- MessBoxStyle::Ok, 0, "Password length",
- "The password you have entered causes interoperability issues. Please enter a password that is shorter than 52 bytes, or longer than 55 bytes."
- )->Execute();
+ vcl::Window* pWin = Application::GetDefDialogParent();
+ std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Warning,
+ VclButtonsType::Ok, SfxResId(STR_PASSWORD_LEN)));
+ xBox->set_secondary_text(SfxResId(STR_PASSWORD_WARNING));
+ xBox->run();
}
while (true);
if ( pPasswordRequest->isPassword() )