summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-03-18 16:36:37 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-03-18 16:36:37 +0000
commit2c0dbbb6491336c472fae124f73b13ccab7d2d96 (patch)
treef69a3e764fd60d81a1c4845e3fe8ad39943b4baf /sfx2
parent93e880fabe9f4df200412a078ef5318ca5513940 (diff)
INTEGRATION: CWS tkr11_DEV300 (1.116.80); FILE MERGED
2008/02/28 13:10:50 tkr 1.116.80.1: #154182# new property to set standard dir on open/save dialog
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appopen.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 76e4c349466b..910dee2f1c76 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: appopen.cxx,v $
*
- * $Revision: 1.117 $
+ * $Revision: 1.118 $
*
- * last change: $Author: obo $ $Date: 2008-02-26 15:02:46 $
+ * last change: $Author: vg $ $Date: 2008-03-18 17:36:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -947,8 +947,14 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
if ( pSystemDialogItem )
nDialog = pSystemDialogItem->GetValue() ? SFX2_IMPL_DIALOG_SYSTEM : SFX2_IMPL_DIALOG_OOO;
+ String sStandardDir;
+
+ SFX_REQUEST_ARG( rReq, pStandardDirItem, SfxStringItem, SID_STANDARD_DIR, FALSE );
+ if ( pStandardDirItem )
+ sStandardDir = pStandardDirItem->GetValue();
+
ULONG nErr = sfx2::FileOpenDialog_Impl(
- WB_OPEN | SFXWB_MULTISELECTION | SFXWB_SHOWVERSIONS, String(), pURLList, aFilter, pSet, &aPath, nDialog );
+ WB_OPEN | SFXWB_MULTISELECTION | SFXWB_SHOWVERSIONS, String(), pURLList, aFilter, pSet, &aPath, nDialog, sStandardDir );
if ( nErr == ERRCODE_ABORT )
{