Kaydet (Commit) 191321c6 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

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
üst e28427dc
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: ConnectionHelper.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -345,6 +345,16 @@ DBG_NAME(OConnectionHelper) ...@@ -345,6 +345,16 @@ DBG_NAME(OConnectionHelper)
askForFileName(aFileDlg); askForFileName(aFileDlg);
} }
break; 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: case DST_ADABAS:
{ {
// collect all names from the config dir // collect all names from the config dir
...@@ -809,6 +819,7 @@ DBG_NAME(OConnectionHelper) ...@@ -809,6 +819,7 @@ DBG_NAME(OConnectionHelper)
if ( (DST_DBASE == m_eType) if ( (DST_DBASE == m_eType)
|| (DST_FLAT == m_eType) || (DST_FLAT == m_eType)
|| (DST_MSACCESS == m_eType) || (DST_MSACCESS == m_eType)
|| (DST_MSACCESS_2007 == m_eType)
|| (DST_CALC == m_eType) ) || (DST_CALC == m_eType) )
switch (_rNEvt.GetType()) switch (_rNEvt.GetType())
{ {
...@@ -929,6 +940,7 @@ DBG_NAME(OConnectionHelper) ...@@ -929,6 +940,7 @@ DBG_NAME(OConnectionHelper)
if ( (DST_DBASE == m_eType) if ( (DST_DBASE == m_eType)
|| (DST_FLAT == m_eType) || (DST_FLAT == m_eType)
|| (DST_MSACCESS == m_eType) || (DST_MSACCESS == m_eType)
|| (DST_MSACCESS_2007 == m_eType)
|| (DST_CALC == m_eType) ) || (DST_CALC == m_eType) )
{ {
if ((sURL != sOldPath) && (0 != sURL.Len())) if ((sURL != sOldPath) && (0 != sURL.Len()))
...@@ -938,7 +950,7 @@ DBG_NAME(OConnectionHelper) ...@@ -938,7 +950,7 @@ DBG_NAME(OConnectionHelper)
OFileNotation aTransformer(sURL); OFileNotation aTransformer(sURL);
sURL = aTransformer.get(OFileNotation::N_URL); 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# -------------------------- { // #106016# --------------------------
if( pathExists(sURL, sal_True) == PATH_NOT_EXIST ) if( pathExists(sURL, sal_True) == PATH_NOT_EXIST )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment