summaryrefslogtreecommitdiff
path: root/tools/bootstrp/prj.cxx
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2001-09-20 15:21:24 +0000
committerNils Fuhrmann <nf@openoffice.org>2001-09-20 15:21:24 +0000
commit8a45e12c8e4b88bd63326ee7a9e0ddb3116394a4 (patch)
treeeab9c7930e5a01955274948d55759faf7ed7a22a /tools/bootstrp/prj.cxx
parent37caa58b2b9226b1b90c092aca07ea83c4ee9247 (diff)
Added error link
Diffstat (limited to 'tools/bootstrp/prj.cxx')
-rw-r--r--tools/bootstrp/prj.cxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 0902b5c0ec80..8c7ac268d1bd 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: prj.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: nf $ $Date: 2001-09-20 15:45:40 $
+ * last change: $Author: nf $ $Date: 2001-09-20 16:21:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -100,8 +100,6 @@
#endif
#endif
-Link Star::aDBNotFoundHdl;
-
//
// class SimpleConfig
//
@@ -1330,6 +1328,12 @@ USHORT StarWriter::Write( String aFileName )
SvFileStream aFileStream;
aFileStream.Open( aFileName, STREAM_WRITE | STREAM_TRUNC);
+ if ( !aFileStream.IsOpen() && aFileIOErrorHdl.IsSet()) {
+ String sError( String::CreateFromAscii( "Error: Unable to open \"" ));
+ sError += aFileName;
+ sError += String::CreateFromAscii( "for writing!" );
+ aFileIOErrorHdl.Call( &sError );
+ }
if ( Count() > 0 )
{
@@ -1370,6 +1374,13 @@ USHORT StarWriter::WriteMultiple( String rSourceRoot )
SvFileStream aFileStream;
aFileStream.Open( aEntry.GetFull(), STREAM_WRITE | STREAM_TRUNC);
+ if ( !aFileStream.IsOpen() && aFileIOErrorHdl.IsSet()) {
+ String sError( String::CreateFromAscii( "Error: Unable to open \"" ));
+ sError += aEntry.GetFull();
+ sError += String::CreateFromAscii( "for writing!" );
+ aFileIOErrorHdl.Call( &sError );
+ }
+
WritePrj( pPrj, aFileStream );
aFileStream.Close();