Kaydet (Commit) 2b65832b authored tarafından Caolán McNamara's avatar Caolán McNamara

QueryBox QUERY_BRW_DELETE_ROWS -> MessageDialog + string

Change-Id: Ifb6fb8a09cda0c868a3b4f510f6b04665cfe7597
üst 54758555
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
#include <svx/svxdlg.hxx> #include <svx/svxdlg.hxx>
#include <tools/diagnose_ex.h> #include <tools/diagnose_ex.h>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <vcl/waitobj.hxx> #include <vcl/waitobj.hxx>
...@@ -1386,7 +1387,7 @@ void SbaXDataBrowserController::resetted(const ::com::sun::star::lang::EventObje ...@@ -1386,7 +1387,7 @@ void SbaXDataBrowserController::resetted(const ::com::sun::star::lang::EventObje
sal_Bool SbaXDataBrowserController::confirmDelete(const ::com::sun::star::sdb::RowChangeEvent& /*aEvent*/) throw( RuntimeException, std::exception ) sal_Bool SbaXDataBrowserController::confirmDelete(const ::com::sun::star::sdb::RowChangeEvent& /*aEvent*/) throw( RuntimeException, std::exception )
{ {
if (QueryBox(getBrowserView(), ModuleRes(QUERY_BRW_DELETE_ROWS)).Execute() != RET_YES) if (MessageDialog(getBrowserView(), ModuleRes(STR_QUERY_BRW_DELETE_ROWS), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO).Execute() != RET_YES)
return sal_False; return sal_False;
return sal_True; return sal_True;
......
...@@ -29,10 +29,9 @@ QueryBox QUERY_BRW_SAVEMODIFIED ...@@ -29,10 +29,9 @@ QueryBox QUERY_BRW_SAVEMODIFIED
Message [ en-US ] = "The current record has been changed.\nDo you want to save the changes?" ; Message [ en-US ] = "The current record has been changed.\nDo you want to save the changes?" ;
}; };
QueryBox QUERY_BRW_DELETE_ROWS String STR_QUERY_BRW_DELETE_ROWS
{ {
Buttons = WB_YES_NO ; Text[ en-US ] = "Do you want to delete the selected data?" ;
Message [ en-US ] = "Do you want to delete the selected data?" ;
}; };
String RID_STR_DATABROWSER_FILTERED String RID_STR_DATABROWSER_FILTERED
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#define RID_STR_UNO_END RID_STR_UNO_START + 20 // 414 - 433 #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_START RID_STR_UNO_END
#define RID_STR_GEN_END RID_STR_GEN_START + 61 // 434 - 493 #define RID_STR_GEN_END RID_STR_GEN_START + 62 // 434 - 493
#define RID_STR_APP_START RID_STR_GEN_END #define RID_STR_APP_START RID_STR_GEN_END
#define RID_STR_APP_END RID_STR_APP_START + 40 // 494 - 533 #define RID_STR_APP_END RID_STR_APP_START + 40 // 494 - 533
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
// query boxes // query boxes
#define QUERY_BRW_DELETE_ROWS RID_QUERYBOX_START + 0
#define QUERY_BRW_SAVEMODIFIED RID_QUERYBOX_START + 1 #define QUERY_BRW_SAVEMODIFIED RID_QUERYBOX_START + 1
#define QUERY_CONNECTION_LOST RID_QUERYBOX_START + 2 #define QUERY_CONNECTION_LOST RID_QUERYBOX_START + 2
#define TABLE_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 5 #define TABLE_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 5
...@@ -223,7 +222,7 @@ ...@@ -223,7 +222,7 @@
#define STR_QRY_ORDERBY_ON_ASTERISK RID_STR_GEN_START + 58 #define STR_QRY_ORDERBY_ON_ASTERISK RID_STR_GEN_START + 58
#define STR_NEED_INDEX_FIELDS RID_STR_GEN_START + 59 #define STR_NEED_INDEX_FIELDS RID_STR_GEN_START + 59
#define STR_QUERY_CLOSEDOCUMENTS RID_STR_GEN_START + 60 #define STR_QUERY_CLOSEDOCUMENTS RID_STR_GEN_START + 60
#define STR_QUERY_BRW_DELETE_ROWS RID_STR_GEN_START + 61
// untyped resources // 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