summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-11-19 10:47:08 +0000
committerOcke Janssen <oj@openoffice.org>2002-11-19 10:47:08 +0000
commit865b8cc8a6c2b3c102243c85977b593710954342 (patch)
tree930881fefbd4cae3fd49e12638d92eb8c9aab866 /dbaccess/source/ui/tabledesign
parent6bebe51c4abbbc5dbbfec22f1d6bd3e2bfa618ef (diff)
#105166# insert new string for missing type info
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx23
-rw-r--r--dbaccess/source/ui/tabledesign/table.src11
2 files changed, 29 insertions, 5 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index ae1f66cc7b06..65cc47574fce 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableController.cxx,v $
*
- * $Revision: 1.85 $
+ * $Revision: 1.86 $
*
- * last change: $Author: oj $ $Date: 2002-11-14 07:55:57 $
+ * last change: $Author: oj $ $Date: 2002-11-19 11:47:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -705,13 +705,30 @@ void SAL_CALL OTableController::initialize( const Sequence< Any >& aArguments )
}
OSL_ENSURE(m_xFormatter.is(),"No NumberFormatter!");
}
+ }
+ catch(const SQLException&)
+ {
+ OSL_ENSURE(sal_False, "OTableController::initialize: caught an exception!");
+ }
+
+ try
+ {
::dbaui::fillTypeInfo(getConnection(),m_sTypeNames,m_aTypeInfo,m_aTypeInfoIndex); // fill the needed type information
+ }
+ catch(const SQLException&)
+ {
+ OSQLMessageBox aErr(getView(),ModuleRes(STR_STAT_WARNING),ModuleRes(STR_NO_TYPE_INFO_AVAILABLE));
+ aErr.Execute();
+ throw;
+ }
+ try
+ {
loadData(); // fill the column information form the table
getView()->initialize(); // show the windows and fill with our informations
getUndoMgr()->Clear(); // clear all undo redo things
setModified(sal_False); // and we are not modified yet
}
- catch(SQLException&)
+ catch(const SQLException&)
{
OSL_ENSURE(sal_False, "OTableController::initialize: caught an exception!");
}
diff --git a/dbaccess/source/ui/tabledesign/table.src b/dbaccess/source/ui/tabledesign/table.src
index 30367f217ef6..d670f7f6ad93 100644
--- a/dbaccess/source/ui/tabledesign/table.src
+++ b/dbaccess/source/ui/tabledesign/table.src
@@ -2,9 +2,9 @@
*
* $RCSfile: table.src,v $
*
- * $Revision: 1.69 $
+ * $Revision: 1.70 $
*
- * last change: $Author: fs $ $Date: 2002-11-08 13:17:22 $
+ * last change: $Author: oj $ $Date: 2002-11-19 11:47:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2319,3 +2319,10 @@ String STR_HELP_AUTOINCREMENT_VALUE
Text[ thai ] = "Enter an SQL statement for the auto-increment field.\n\nThis statement will be directly transferred to the database when the table is created.";
};
+String STR_NO_TYPE_INFO_AVAILABLE
+{
+ Text = "Es konnten keine Typinformationen von der Datenbank ermittelt werden.\nDer Tabellenentwurfmodus ist fr diese Datenquelle nicht verfgbar.";
+ Text[ english ] = "No type information could be retrieved from the database.\nThe table design mode is not available for this data source.";
+};
+
+