summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appopen.cxx
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
commit1c81cdf8d6c58f7cb29f37b465dbcd37314d88c7 (patch)
tree1aef2610726773adc027cb4f8991121d926a26a1 /sfx2/source/appl/appopen.cxx
parentee01a8ab06fd3aafa131644e7fff3174594011b6 (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/source/appl/appopen.cxx')
-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 538a3c7649..94894ebb8f 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 )
{