41 VclMessageType::Question, VclButtonsType::YesNo,
DpResId(STR_QUERY_USERDATALOCKED)));
43 OUString aTitle =
DpResId(STR_TITLE_USERDATALOCKED);
44 xBox->set_title( aTitle );
46 OUString aMsgText = xBox->get_primary_text();
47 aMsgText = aMsgText.replaceFirst(
48 "$u", OStringToOUString( aUser, RTL_TEXTENCODING_ASCII_US) );
49 aMsgText = aMsgText.replaceFirst(
50 "$h", OStringToOUString( aHost, RTL_TEXTENCODING_ASCII_US) );
51 aMsgText = aMsgText.replaceFirst(
52 "$t", OStringToOUString( aTime, RTL_TEXTENCODING_ASCII_US) );
53 xBox->set_primary_text(aMsgText);
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
void SetGroup(const OString &rGroup)
OString ReadKey(const OString &rKey) const
OUString DpResId(TranslateId aId)
bool Lockfile_execWarning(Lockfile const *that)