summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-11-30 16:08:21 +0100
committerMichael Stahl <mstahl@redhat.com>2011-12-03 00:48:12 +0100
commit1274babb68e9dc09747ac54ea19421af839db92a (patch)
tree424dec72286ce76ea8d778b5e2cd5fac7822b6c6 /sd
parente913083ed0db342f161b40a153c8af7ada6b4acc (diff)
sfx2::FileDialogHelper: remove use of WB_OPEN
This can really be derived from the dialog type, don't duplicate it.
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/dlgass.cxx3
-rw-r--r--sd/source/ui/dlg/tpaction.cxx2
-rw-r--r--sd/source/ui/func/fuinsfil.cxx2
3 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index 9b68de71bde4..1c35a5488408 100644
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -1879,7 +1879,8 @@ IMPL_LINK( AssistentDlg, FinishHdl, OKButton *, EMPTYARG )
String aFileToOpen = GetDocPath();
if(aFileToOpen.Len() == 0)
{
- sfx2::FileDialogHelper aFileDlg( WB_OPEN, ::String::CreateFromAscii("simpress") );
+ sfx2::FileDialogHelper aFileDlg( 0,
+ ::String::CreateFromAscii("simpress") );
if ( aFileDlg.Execute() == ERRCODE_NONE )
aFileToOpen = aFileDlg.GetPath();
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx
index e46c9fec6f88..fd468003395d 100644
--- a/sd/source/ui/dlg/tpaction.cxx
+++ b/sd/source/ui/dlg/tpaction.cxx
@@ -470,7 +470,7 @@ void SdTPAction::OpenFileDialog()
}
else
{
- sfx2::FileDialogHelper aFileDialog(WB_OPEN | WB_3DLOOK | WB_STDMODAL );
+ sfx2::FileDialogHelper aFileDialog(WB_3DLOOK | WB_STDMODAL);
if (bDocument && !aFile.Len())
aFile = SvtPathOptions().GetWorkPath();
diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx
index 89dc5435882c..7575773015f0 100644
--- a/sd/source/ui/func/fuinsfil.cxx
+++ b/sd/source/ui/func/fuinsfil.cxx
@@ -116,7 +116,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq )
if (!pArgs)
{
- sfx2::FileDialogHelper aFileDialog( WB_OPEN | SFXWB_INSERT | WB_STDMODAL );
+ sfx2::FileDialogHelper aFileDialog( SFXWB_INSERT | WB_STDMODAL );
Reference< XFilePicker > xFilePicker( aFileDialog.GetFilePicker(), UNO_QUERY );
Reference< XFilterManager > xFilterManager( xFilePicker, UNO_QUERY );
String aOwnCont;