From 2b65832b5853dfea1f970141acfeee46177e3799 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 21 Aug 2014 13:27:11 +0100 Subject: QueryBox QUERY_BRW_DELETE_ROWS -> MessageDialog + string Change-Id: Ifb6fb8a09cda0c868a3b4f510f6b04665cfe7597 --- dbaccess/source/ui/browser/brwctrlr.cxx | 3 ++- dbaccess/source/ui/browser/sbabrw.src | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/ui/browser') diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index 637821192444..328d0eef5d38 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -82,6 +82,7 @@ #include #include #include +#include #include #include @@ -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 ) { - 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_True; diff --git a/dbaccess/source/ui/browser/sbabrw.src b/dbaccess/source/ui/browser/sbabrw.src index ba2620e0825c..ba326e0aef64 100644 --- a/dbaccess/source/ui/browser/sbabrw.src +++ b/dbaccess/source/ui/browser/sbabrw.src @@ -29,10 +29,9 @@ QueryBox QUERY_BRW_SAVEMODIFIED 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 ; - Message [ en-US ] = "Do you want to delete the selected data?" ; + Text[ en-US ] = "Do you want to delete the selected data?" ; }; String RID_STR_DATABROWSER_FILTERED -- cgit v1.2.3