diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 13:45:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 16:45:25 +0100 |
commit | 9b12086313b74b81e9b90a8740b458345c9c0812 (patch) | |
tree | 5858fce568e6ac4904787fa64dfd0ee45623c4f8 /dbaccess/source/ui | |
parent | 25e71834a4fd7ed1c6a6f098f176119af0710f11 (diff) |
convert TABLE_DESIGN_SAVEMODIFIED with custom buttons to .ui
Change-Id: Id0ea1a0a8de1cdd363ee462003406c5625b0e4af
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/inc/dbu_resource.hrc | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/table.src | 7 |
3 files changed, 2 insertions, 9 deletions
diff --git a/dbaccess/source/ui/inc/dbu_resource.hrc b/dbaccess/source/ui/inc/dbu_resource.hrc index c7efd79ec25d..115000c2fc46 100644 --- a/dbaccess/source/ui/inc/dbu_resource.hrc +++ b/dbaccess/source/ui/inc/dbu_resource.hrc @@ -100,7 +100,6 @@ // query boxes -#define TABLE_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 5 #define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13 // images diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index b2565c92f65a..a929bb15454d 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -563,7 +563,8 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) throw( Runti ::boost::mem_fn(&OTableRow::isValid)); if ( aIter != m_vRowList.end() ) { - QueryBox aQry(getView(), ModuleRes(TABLE_DESIGN_SAVEMODIFIED)); + MessageDialog aQry(getView(), "TableDesignSaveModifiedDialog", + "dbaccess/ui/tabledesignsavemodifieddialog.ui"); switch (aQry.Execute()) { case RET_YES: diff --git a/dbaccess/source/ui/tabledesign/table.src b/dbaccess/source/ui/tabledesign/table.src index dcc6d5179017..ce2264269bbc 100644 --- a/dbaccess/source/ui/tabledesign/table.src +++ b/dbaccess/source/ui/tabledesign/table.src @@ -326,13 +326,6 @@ String STR_STAT_WARNING Text [ en-US ] = "Warning!" ; }; -QueryBox TABLE_DESIGN_SAVEMODIFIED -{ - Buttons = WB_YES_NO_CANCEL ; - DefButton = WB_DEF_YES ; - Message [ en-US ] = "The table has been changed.\nDo you want to save the changes?" ; -}; - String STR_TABLEDESIGN_CONNECTION_MISSING { Text [ en-US ] = "The table could not be saved due to problems connecting to the database."; |