summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2000-11-10 07:34:35 +0000
committerSven Jacobi <sj@openoffice.org>2000-11-10 07:34:35 +0000
commitfdc8e66df516b5fb264f0bec75ecf9b3d9d27185 (patch)
treee017ed59a80a49d48b420b681926165d1b621fd8 /goodies
parent24671cf657d6ab7325afcec0a79bb7fad93323f8 (diff)
removing use of filename
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/filter.vcl/ieps/ieps.cxx32
1 files changed, 11 insertions, 21 deletions
diff --git a/goodies/source/filter.vcl/ieps/ieps.cxx b/goodies/source/filter.vcl/ieps/ieps.cxx
index 898ba5e710c8..04260ed9536a 100644
--- a/goodies/source/filter.vcl/ieps/ieps.cxx
+++ b/goodies/source/filter.vcl/ieps/ieps.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ieps.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:30:15 $
+ * last change: $Author: sj $ $Date: 2000-11-10 08:34:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -407,27 +407,17 @@ extern "C" BOOL GraphicImport(SvStream & rStream, Graphic & rGraphic,
String aString;
int nLen;
- if ( rStream.IsA() == ID_FILESTREAM )
- {
- SvFileStream* pSvFileStream = (SvFileStream*)&rStream;
- INetURLObject aURL;
- aURL.SetSmartURL( pSvFileStream->GetFileName() );
- aString = aURL.GetName();
- }
- else
+ pDest = ImplSearchEntry( pBuf, (BYTE*)"%%Title:", nBytesRead - 32, 8 );
+ if ( pDest )
{
- pDest = ImplSearchEntry( pBuf, (BYTE*)"%%Title:", nBytesRead - 32, 8 );
- if ( pDest )
+ pDest += 8;
+ if ( *pDest == ' ' )
+ pDest++;
+ nLen = ImplGetLen( pBuf, 32 );
+ pDest[ nLen ] = 0;
+ if ( strcmp( (const char*)pDest, "none" ) != 0 )
{
- pDest += 8;
- if ( *pDest == ' ' )
- pDest++;
- nLen = ImplGetLen( pBuf, 32 );
- pDest[ nLen ] = 0;
- if ( strcmp( (const char*)pDest, "none" ) != 0 )
- {
- aString.AppendAscii( (char*)pDest );
- }
+ aString.AppendAscii( (char*)pDest );
}
}
pDest = ImplSearchEntry( pBuf, (BYTE*)"%%Creator:", nBytesRead - 32, 10 );