summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-25 13:29:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-25 16:45:24 +0100
commit58a7a9bf0463c87b8e4bb483da558d9b62b032f9 (patch)
tree52fa58431d54aa39f9922e9420783230730cbc66 /dbaccess/source/ui/browser
parentb6d25be2d7ab81fb5343b742542b79bad2121024 (diff)
convert QUERY_BRW_SAVEMODIFIED with custom buttons to .ui
Change-Id: I184ffcda39b3e38ae4e4c4729f8dae62158afdae
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx5
-rw-r--r--dbaccess/source/ui/browser/sbabrw.src7
2 files changed, 3 insertions, 9 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 328d0eef5d38..e275b7daa573 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -83,7 +83,6 @@
#include <tools/diagnose_ex.h>
#include <osl/diagnose.h>
#include <vcl/layout.hxx>
-#include <vcl/msgbox.hxx>
#include <vcl/waitobj.hxx>
using namespace ::com::sun::star;
@@ -2173,7 +2172,9 @@ bool SbaXDataBrowserController::SaveModified(sal_Bool bAskFor)
{
getBrowserView()->getVclControl()->GrabFocus();
- QueryBox aQry(getBrowserView()->getVclControl(), ModuleRes(QUERY_BRW_SAVEMODIFIED));
+ MessageDialog aQry(getBrowserView()->getVclControl(),
+ "SaveModifiedDialog",
+ "dbaccess/ui/savemodifieddialog.ui");
switch (aQry.Execute())
{
diff --git a/dbaccess/source/ui/browser/sbabrw.src b/dbaccess/source/ui/browser/sbabrw.src
index 4e304e2ddd30..01888a4ed425 100644
--- a/dbaccess/source/ui/browser/sbabrw.src
+++ b/dbaccess/source/ui/browser/sbabrw.src
@@ -22,13 +22,6 @@
#include <svx/globlmn.hrc>
#include "toolbox.hrc"
-QueryBox QUERY_BRW_SAVEMODIFIED
-{
- Buttons = WB_YES_NO_CANCEL ;
- DefButton = WB_DEF_YES ;
- Message [ en-US ] = "The current record has been changed.\nDo you want to save the changes?" ;
-};
-
String STR_QUERY_BRW_DELETE_ROWS
{
Text[ en-US ] = "Do you want to delete the selected data?" ;