From 5754213c709428b19c68d5242df54683bf83536e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 30 Nov 2011 16:08:23 +0100 Subject: sfx2::FileDialogHelper: refactor construction: There are currently 2 different ways to specify what kind of file dialog should be created: the nDialogType and nFlags ctor parameters. Simplify that by using the nDialogType for the API specified variety, and the nFlags only for options that cannot be specified by the API. This allows to get rid of 3 constructors, and the following constants: WB_OPEN, WB_SAVEAS, WB_PASSWORD, SFXWB_PASSWORD, SFXWB_SHOWSTYLES --- dbaccess/source/ui/app/AppController.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/app/AppController.cxx') diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 81a2dd0d7d08..216d65ffe63f 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -1172,14 +1172,15 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa case ID_BROWSER_SAVEASDOC: { - WinBits nBits(WB_SAVEAS); ::rtl::OUString sUrl; if ( m_xModel.is() ) sUrl = m_xModel->getURL(); if ( !sUrl.getLength() ) sUrl = SvtPathOptions().GetWorkPath(); - ::sfx2::FileDialogHelper aFileDlg( com::sun::star::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION,static_cast(nBits) ,getView()); + ::sfx2::FileDialogHelper aFileDlg( + ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION, + 0, getView()); aFileDlg.SetDisplayDirectory( sUrl ); const SfxFilter* pFilter = getStandardDatabaseFilter(); -- cgit