summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-11-06 08:44:32 +0000
committerjp <jp@openoffice.org>2000-11-06 08:44:32 +0000
commit48bd7012350305905e5829b7b08e73e29ac111ca (patch)
tree0d4a4110be6dd972f55d3b39a73b8843250bfc75 /sw/source/core
parent8b71a8bae4ab94e0658bece320ba384b2d3d6e96 (diff)
must changes: tempfile
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/bastyp/swcache.cxx14
-rw-r--r--sw/source/core/doc/docglbl.cxx14
2 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index 54cc0fea4bae..bfa3069188fa 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: swcache.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-19 00:08:16 $
+ * last change: $Author: jp $ $Date: 2000-11-06 09:44:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,8 +71,8 @@
#ifndef _STREAM_HXX //autogen
#include <tools/stream.hxx>
#endif
-#ifndef _TOOLS_TEMPFILE_HXX
-#include <tools/tempfile.hxx>
+#ifndef _UNOTOOLS_TEMPFILE_HXX
+#include <unotools/tempfile.hxx>
#endif
#include "errhdl.hxx"
#include "swcache.hxx"
@@ -192,9 +192,9 @@ SwCache::~SwCache()
{
#ifndef MAC
static USHORT nOpenMode = STREAM_WRITE | STREAM_TRUNC;
- String sExt(String::CreateFromAscii("log"));
- TempFile aTempFile(String::CreateFromAscii("swcache"), &sExt);
- SvFileStream aStream( aTempFile.GetName(), nOpenMode );
+ String sExt(String::CreateFromAscii(".log"));
+ utl::TempFile aTempFile(String::CreateFromAscii("swcache"), &sExt);
+ SvFileStream aStream( aTempFile.GetFileName(), nOpenMode );
nOpenMode = STREAM_WRITE;
if( !aStream.GetError() )
diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx
index 362c84bbb1f6..fd77fae252b3 100644
--- a/sw/source/core/doc/docglbl.cxx
+++ b/sw/source/core/doc/docglbl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docglbl.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-10-19 09:44:23 $
+ * last change: $Author: jp $ $Date: 2000-11-06 09:44:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -69,8 +69,8 @@
#include <hintids.hxx>
#endif
-#ifndef _TOOLS_TEMPFILE_HXX
-#include <tools/tempfile.hxx>
+#ifndef _UNOTOOLS_TEMPFILE_HXX
+#include <unotools/tempfile.hxx>
#endif
#ifndef SVTOOLS_URIHELPER_HXX
#include <svtools/urihelper.hxx>
@@ -251,7 +251,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
String sLeading(aEntry.GetBase());
aEntry.removeSegment();
String sPath = aEntry.GetMainURL();
- TempFile aTemp(sLeading,&sExt,&sPath );
+ utl::TempFile aTemp(sLeading,&sExt,&sPath );
aTemp.EnableKillingFile();
DateTime aTmplDate;
@@ -367,8 +367,8 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
INetURLObject aEntry2(rPath);
aEntry2.removeSegment();
String sPath = aEntry2.GetMainURL();
- TempFile aTempFile2(sLeading,&sExt,&sPath );
- sFileName = aTempFile2.GetName();
+ utl::TempFile aTempFile2(sLeading,&sExt,&sPath );
+ sFileName = aTempFile2.GetFileName();
SfxMedium* pTmpMed = new SfxMedium( sFileName,
STREAM_STD_READWRITE, TRUE );
pTmpMed->SetFilter( pFilter );