diff --git a/dbaccess/UIConfig_dbaccess.mk b/dbaccess/UIConfig_dbaccess.mk index 5ee75b132ccc..c62fb19ff4be 100644 --- a/dbaccess/UIConfig_dbaccess.mk +++ b/dbaccess/UIConfig_dbaccess.mk @@ -28,6 +28,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \ dbaccess/uiconfig/ui/dbwizmysqlnativepage \ dbaccess/uiconfig/ui/dbwizspreadsheetpage \ dbaccess/uiconfig/ui/dbwiztextpage \ + dbaccess/uiconfig/ui/deleteallrowsdialog \ dbaccess/uiconfig/ui/designsavemodifieddialog \ dbaccess/uiconfig/ui/directsqldialog \ dbaccess/uiconfig/ui/emptypage \ diff --git a/dbaccess/source/ui/inc/dbu_resource.hrc b/dbaccess/source/ui/inc/dbu_resource.hrc index 115000c2fc46..4bf0d025e1e7 100644 --- a/dbaccess/source/ui/inc/dbu_resource.hrc +++ b/dbaccess/source/ui/inc/dbu_resource.hrc @@ -98,10 +98,6 @@ // FREE -// query boxes - -#define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13 - // images #define TABLE_TREE_ICON RID_IMAGE_START + 0 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"; diff --git a/dbaccess/uiconfig/ui/deleteallrowsdialog.ui b/dbaccess/uiconfig/ui/deleteallrowsdialog.ui new file mode 100644 index 000000000000..5f69c51f49bc --- /dev/null +++ b/dbaccess/uiconfig/ui/deleteallrowsdialog.ui @@ -0,0 +1,82 @@ + + + + + + False + 12 + False + dialog + True + question + 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. + + + False + vertical + 24 + + + False + end + + + gtk-no + True + True + True + True + + + False + True + 0 + + + + + gtk-yes + True + True + True + True + True + True + + + False + True + 1 + + + + + gtk-cancel + True + True + True + True + + + False + True + 2 + + + + + False + True + end + 0 + + + + + + no + yes + cancel + + +