Kaydet (Commit) 650bdfb2 authored tarafından Caolán McNamara's avatar Caolán McNamara

QueryBox QUERY_USERADMIN_DELETE_USER -> MessageDialog + string

Change-Id: Iedccb1ace9f74d92f09cc6ca23f9aaf004fa05f2
üst 718648db
......@@ -37,7 +37,6 @@
#include "dbadmin.hxx"
#include "moduledbu.hxx"
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <sfx2/passwd.hxx>
using namespace ::com::sun::star::container;
......@@ -239,7 +238,7 @@ IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton )
Reference<XDrop> xDrop(m_xUsers,UNO_QUERY);
if(xDrop.is())
{
QueryBox aQry(this, ModuleRes(QUERY_USERADMIN_DELETE_USER));
MessageDialog aQry(this, ModuleRes(STR_QUERY_USERADMIN_DELETE_USER), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
if(aQry.Execute() == RET_YES)
xDrop->dropByName(GetUser());
}
......
......@@ -20,10 +20,9 @@
#include "dbu_dlg.hrc"
#include "dbaccess_helpid.hrc"
QueryBox QUERY_USERADMIN_DELETE_USER
String STR_QUERY_USERADMIN_DELETE_USER
{
Buttons = WB_YES_NO ;
Message [ en-US ] = "Do you really want to delete the user?";
Text[ en-US ] = "Do you really want to delete the user?";
};
String STR_USERADMIN_NOT_AVAILABLE
......
......@@ -62,7 +62,7 @@
#define RID_STR_UNO_END RID_STR_UNO_START + 20 // 414 - 433
#define RID_STR_GEN_START RID_STR_UNO_END
#define RID_STR_GEN_END RID_STR_GEN_START + 63 // 434 - 493
#define RID_STR_GEN_END RID_STR_GEN_START + 64 // 434 - 493
#define RID_STR_APP_START RID_STR_GEN_END
#define RID_STR_APP_END RID_STR_APP_START + 40 // 494 - 533
......@@ -105,7 +105,6 @@
#define QUERY_SAVE_CURRENT_INDEX RID_QUERYBOX_START + 7
#define QUERY_SAVE_TABLE_EDIT_INDEXES RID_QUERYBOX_START + 8
#define RELATION_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 9
#define QUERY_USERADMIN_DELETE_USER RID_QUERYBOX_START + 12
#define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13
// images
......@@ -223,6 +222,7 @@
#define STR_QUERY_CLOSEDOCUMENTS RID_STR_GEN_START + 60
#define STR_QUERY_BRW_DELETE_ROWS RID_STR_GEN_START + 61
#define STR_QUERY_CONNECTION_LOST RID_STR_GEN_START + 62
#define STR_QUERY_USERADMIN_DELETE_USER RID_STR_GEN_START + 63
// untyped resources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment