From db83365b3b0f0e50148af30af67e01e985e21295 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 Aug 2014 13:48:22 +0100 Subject: convert TABLE_DESIGN_ALL_ROWS_DELETED with custom buttons to .ui Change-Id: Id4b5573cd7e20f841e25ba17f17e98b78fb759cc --- dbaccess/source/ui/tabledesign/TableController.cxx | 3 ++- dbaccess/source/ui/tabledesign/table.src | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'dbaccess/source/ui/tabledesign') 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"; -- cgit