Tag: cws_dev300_dba31a User: oj Date: 2008-06-09 06:58:23+0000 Modified: dba/dbaccess/source/ui/dlg/generalpage.cxx
Log: #i90490# select db filter as default File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: generalpage.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/generalpage.cxx?r1=1.56&r2=1.56.42.1 Delta lines: +10 -5 -------------------- --- generalpage.cxx 2008-04-10 14:54:38+0000 1.56 +++ generalpage.cxx 2008-06-09 06:58:17+0000 1.56.42.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: generalpage.cxx,v $ - * $Revision: 1.56 $ + * $Revision: 1.56.42.1 $ * * This file is part of OpenOffice.org. * @@ -52,9 +52,8 @@ #ifndef _DBAUI_DBADMIN_HXX_ #include "dbadmin.hxx" #endif -#ifndef _FILEDLGHELPER_HXX #include <sfx2/filedlghelper.hxx> -#endif +#include <sfx2/docfilt.hxx> #ifndef _VCL_STDTEXT_HXX #include <vcl/stdtext.hxx> #endif @@ -85,7 +84,7 @@ #ifndef DBAUI_DRIVERSETTINGS_HXX #include "DriverSettings.hxx" #endif - +#include "UITools.hxx" //......................................................................... namespace dbaui { @@ -599,6 +598,12 @@ IMPL_LINK(OGeneralPage, OnOpenDocument, PushButton*, /*_pBox*/) { ::sfx2::FileDialogHelper aFileDlg( WB_OPEN, ::String::CreateFromAscii("sdatabase") ); + const SfxFilter* pFilter = getStandardDatabaseFilter(); + if ( pFilter ) + { +// aFileDlg.AddFilter(pFilter->GetUIName(),pFilter->GetDefaultExtension()); + aFileDlg.SetCurrentFilter(pFilter->GetUIName()); + } if ( aFileDlg.Execute() == ERRCODE_NONE ) { m_aBrowsedDocument.sURL = aFileDlg.GetPath(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
