summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/guisaveas.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-01-11 12:30:28 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-01-11 12:30:28 +0000
commit2db2917d2b463b301033d450033a424c95fe7aca (patch)
tree1e2d63794ada422d18939ff8c299ca21e34d9373 /sfx2/source/doc/guisaveas.cxx
parent040671f0f316fea75d7f9d97a46a252710ad203d (diff)
INTEGRATION: CWS sb19 (1.2.44); FILE MERGED
2004/12/09 16:03:58 sb 1.2.44.3: #i10000# Merge errors. 2004/12/09 05:54:06 sb 1.2.44.2: RESYNC: (1.2-1.7); FILE MERGED 2004/10/20 15:38:39 mba 1.2.44.1: #110407#: remove static BaseURL
Diffstat (limited to 'sfx2/source/doc/guisaveas.cxx')
-rw-r--r--sfx2/source/doc/guisaveas.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index b11321f747..5cb2e73805 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: guisaveas.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2004-11-26 16:16:26 $
+ * last change: $Author: rt $ $Date: 2005-01-11 13:30:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -821,9 +821,13 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
// <--
if ( !aLastName.getLength() )
+ {
aLastName = GetDocProps().getUnpackedValueOrDefault(
::rtl::OUString::createFromAscii( "Title" ),
::rtl::OUString() );
+ INetURLObject aObj( INetURLObject::GetAbsURL( SvtPathOptions().GetWorkPath(), aLastName ) );
+ aLastName = aObj.GetMainURL( INetURLObject::NO_DECODE );
+ }
uno::Sequence< beans::PropertyValue > aOldFilterProps;
sal_Int32 nOldFiltFlags = 0;
@@ -844,11 +848,7 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
{
if( aLastName.getLength() )
{
- String aPath( aLastName );
- INetURLObject aObj( SvtPathOptions().GetWorkPath() );
- aObj.setFinalSlash();
- aObj = INetURLObject( aObj.RelToAbs( aPath, sal_False ) );
-
+ INetURLObject aObj( aLastName );
::rtl::OUString aTypeName = aPreselectedFilterPropsHM.getUnpackedValueOrDefault(
::rtl::OUString::createFromAscii( "Type" ),
::rtl::OUString() );
@@ -1776,16 +1776,17 @@ void SfxStoringHelper::SetDocInfoState( const uno::Reference< frame::XModel >& x
//-------------------------------------------------------------------------
// static
void SfxStoringHelper::ExecuteInfoDlg( const ::rtl::OUString& aTargetURL,
- const ::rtl::OUString& aTitle,
+ const ::rtl::OUString& aTitle, const String& rBaseURL,
SfxDocumentInfo &aDocInfo )
{
// Itemset f"ur Dialog aufbereiten
SfxDocumentInfoItem aDocInfoItem( aTargetURL, aDocInfo );
SfxItemSet aSet( SFX_APP()->GetPool(), SID_DOCINFO, SID_DOCINFO,
- SID_EXPLORER_PROPS_START, SID_EXPLORER_PROPS_START,
+ SID_EXPLORER_PROPS_START, SID_EXPLORER_PROPS_START, SID_BASEURL, SID_BASEURL,
0L );
aSet.Put( aDocInfoItem );
aSet.Put( SfxStringItem( SID_EXPLORER_PROPS_START, aTitle ) );
+ aSet.Put( SfxStringItem( SID_BASEURL, rBaseURL ) );
// Dialog via Factory erzeugen und ausf"uhren
SfxDocumentInfoDialog aDlg( 0, aSet );