summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-06-22 08:20:10 +0000
committerMathias Bauer <mba@openoffice.org>2001-06-22 08:20:10 +0000
commit5b9785091c8d35df4515feee2862435ccaa6f85a (patch)
tree8cc5ecc0318ab18f4cba1cd58bd32f71fb5311b4 /sfx2
parent29d8f05dab8c10309f16fcc899a9ce138893473f (diff)
#88646#: allow creation of storages on a UCBContent
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 12f1c16e3e13..c0170cff8070 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docfile.cxx,v $
*
- * $Revision: 1.57 $
+ * $Revision: 1.58 $
*
- * last change: $Author: mba $ $Date: 2001-06-20 09:32:09 $
+ * last change: $Author: mba $ $Date: 2001-06-22 09:19:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -164,6 +164,8 @@ using namespace ::com::sun::star::ucb;
#include <svtools/pathoptions.hxx>
#include <ucbhelper/contentbroker.hxx>
#include <unotools/localfilehelper.hxx>
+#include <unotools/ucbhelper.hxx>
+#include <ucbhelper/content.hxx>
#include "ucbhelp.hxx"
#include "helper.hxx"
@@ -1282,6 +1284,17 @@ void SfxMedium::Transfer_Impl()
return;
}
+ SFX_ITEMSET_ARG( GetItemSet(), p, SfxInt32Item, SID_SEGMENTSIZE, sal_False);
+ if ( pSegmentSize )
+ if ( SOFFICE_FILEFORMAT_60 <= pFilter->GetVersion() )
+ {
+ ::utl::UCBContentHelper::MakeFolder( GetName() );
+ ::ucb::Content aContent( GetName(), Reference < XCommandEnvironment >() );
+ SotStorageRef xStor = new SotStorage( aContent, GetName() );
+ GetStorage()->CopyTo( xStor );
+ return;
+ }
+
sal_Bool bSuccess = sal_False;
// check wether the the temp file has the same protocol