diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 13:48:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 16:45:26 +0100 |
commit | db83365b3b0f0e50148af30af67e01e985e21295 (patch) | |
tree | dd3f9fee5c39828070fcbf6e453ab3f75d36b8ff /dbaccess/source/ui/tabledesign | |
parent | 9b12086313b74b81e9b90a8740b458345c9c0812 (diff) |
convert TABLE_DESIGN_ALL_ROWS_DELETED with custom buttons to .ui
Change-Id: Id4b5573cd7e20f841e25ba17f17e98b78fb759cc
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/table.src | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index a929bb15454d..d51d1bc0e2a6 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -580,7 +580,8 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) throw( Runti } else if ( !m_bNew ) { - QueryBox aQry(getView(), ModuleRes(TABLE_DESIGN_ALL_ROWS_DELETED)); + MessageDialog aQry(getView(), "DeleteAllRowsDialog", + "dbaccess/ui/deleteallrowsdialog.ui"); switch (aQry.Execute()) { case RET_YES: diff --git a/dbaccess/source/ui/tabledesign/table.src b/dbaccess/source/ui/tabledesign/table.src index ce2264269bbc..a191b3435325 100644 --- a/dbaccess/source/ui/tabledesign/table.src +++ b/dbaccess/source/ui/tabledesign/table.src @@ -371,13 +371,6 @@ String STR_TABLEDESIGN_COULD_NOT_DROP_COL Text [ en-US ] = "The column $column$ could not be deleted."; }; -QueryBox TABLE_DESIGN_ALL_ROWS_DELETED -{ - Buttons = WB_YES_NO_CANCEL ; - DefButton = WB_DEF_YES ; - Message [ en-US ] = "You are trying to delete all the columns in the table. A table cannot exist without columns. Should the table be deleted from the database? If not, the table will remain unchanged."; -}; - String STR_AUTOINCREMENT_VALUE { Text [ en-US ] = "A~uto-increment statement"; |