summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/ConnectionHelper.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:52:37 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:52:37 +0000
commit191321c696a12dd2a12211f41eb49e05853ff3f7 (patch)
tree1cb50dde0063fe943b59c8688248737badca53d5 /dbaccess/source/ui/dlg/ConnectionHelper.cxx
parente28427dcb0f51ec4a63a5a0a094f22aa46948f5d (diff)
INTEGRATION: CWS dba24c (1.16.38); FILE MERGED
2007/10/30 12:57:46 oj 1.16.38.2: #i81043# impl new type access 2007 2007/10/02 10:27:00 oj 1.16.38.1: #i81043# allow accdb
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionHelper.cxx')
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index a3622c9476bb..6e9a0659cd3f 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ConnectionHelper.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: rt $ $Date: 2007-07-06 08:09:53 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 15:52:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -345,6 +345,16 @@ DBG_NAME(OConnectionHelper)
askForFileName(aFileDlg);
}
break;
+ case DST_MSACCESS_2007:
+ {
+ ::rtl::OUString sAccdb(RTL_CONSTASCII_USTRINGPARAM("*.accdb"));
+ String sFilterName2(ModuleRes (STR_MSACCESS_2007_FILTERNAME));
+ ::sfx2::FileDialogHelper aFileDlg(WB_3DLOOK | WB_STDMODAL | WB_OPEN);
+ aFileDlg.AddFilter(sFilterName2,sAccdb);
+ aFileDlg.SetCurrentFilter(sFilterName2);
+ askForFileName(aFileDlg);
+ }
+ break;
case DST_ADABAS:
{
// collect all names from the config dir
@@ -809,6 +819,7 @@ DBG_NAME(OConnectionHelper)
if ( (DST_DBASE == m_eType)
|| (DST_FLAT == m_eType)
|| (DST_MSACCESS == m_eType)
+ || (DST_MSACCESS_2007 == m_eType)
|| (DST_CALC == m_eType) )
switch (_rNEvt.GetType())
{
@@ -929,6 +940,7 @@ DBG_NAME(OConnectionHelper)
if ( (DST_DBASE == m_eType)
|| (DST_FLAT == m_eType)
|| (DST_MSACCESS == m_eType)
+ || (DST_MSACCESS_2007 == m_eType)
|| (DST_CALC == m_eType) )
{
if ((sURL != sOldPath) && (0 != sURL.Len()))
@@ -938,7 +950,7 @@ DBG_NAME(OConnectionHelper)
OFileNotation aTransformer(sURL);
sURL = aTransformer.get(OFileNotation::N_URL);
- if ( (DST_CALC == m_eType) || (DST_MSACCESS == m_eType) )
+ if ( (DST_CALC == m_eType) || (DST_MSACCESS == m_eType) || (DST_MSACCESS_2007 == m_eType) )
{ // #106016# --------------------------
if( pathExists(sURL, sal_True) == PATH_NOT_EXIST )
{