User: ihi Date: 2007-11-21 15:52:40+0000 Modified: dba/dbaccess/source/ui/dlg/ConnectionHelper.cxx
Log: 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 File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: ConnectionHelper.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/ConnectionHelper.cxx?r1=1.16&r2=1.17 Delta lines: +14 -2 -------------------- --- ConnectionHelper.cxx 2007-07-06 08:09:53+0000 1.16 +++ ConnectionHelper.cxx 2007-11-21 15:52:37+0000 1.17 @@ -345,6 +345,16 @@ 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 @@ 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 @@ 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 @@ 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 ) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
