diff options
author | Philipp Lohmann <pl@openoffice.org> | 2000-11-18 16:30:48 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2000-11-18 16:30:48 +0000 |
commit | 1865bd25d856b87eceeb571d16d7f9eb6d61b832 (patch) | |
tree | 7f7a30c7ffa5286d0e52fd9e41df6e9b1a0e9082 /vcl | |
parent | 2a4f145bb27f236d649603ae24589f0040e01aa2 (diff) |
fax for psprint
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/source/gdi/salprnpsp.cxx | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/vcl/unx/source/gdi/salprnpsp.cxx b/vcl/unx/source/gdi/salprnpsp.cxx index 9aef7b03a7a5..2a0a2556b292 100644 --- a/vcl/unx/source/gdi/salprnpsp.cxx +++ b/vcl/unx/source/gdi/salprnpsp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: salprnpsp.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: cp $ $Date: 2000-11-17 18:42:57 $ + * last change: $Author: pl $ $Date: 2000-11-18 17:30:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -254,23 +254,6 @@ static bool sendAFax( const String& rFaxNumber, const String& rFileName, const S bool bPipe = aCmdLine.Search( "(TMP)" ) != STRING_NOTFOUND ? false : true; if( ! aFaxNumber.Len() ) - // then the number must be embedded in the document - { - SvFileStream aStream( rFileName, STREAM_READ ); - ByteString aLine; - while( aStream.IsEof() ) - { - aStream.ReadLine( aLine ); - if( aLine.GetChar( 0 ) == '%' && - aLine.Search( "PhoneNumber(" ) != STRING_NOTFOUND ) - { - aFaxNumber = aLine.GetToken( 1, '(' ).GetToken( 0, ')' ); - break; - } - } - } - - if( ! aFaxNumber.Len() ) { getPaLib(); if( pFaxNrFunction ) @@ -834,6 +817,7 @@ SalGraphics* SalPrinter::StartPage( ImplJobSetup* pJobSetup, BOOL bNewJobData ) maPrinterData.m_pGraphics = new SalGraphics(); maPrinterData.m_pGraphics->maGraphicsData.m_pJobData = &maPrinterData.m_aJobData; maPrinterData.m_pGraphics->maGraphicsData.m_pPrinterGfx = &maPrinterData.m_aPrinterGfx; + maPrinterData.m_pGraphics->maGraphicsData.m_pPhoneNr = maPrinterData.m_bFax ? &maPrinterData.m_aFaxNr : NULL; maPrinterData.m_aPrintJob.StartPage( maPrinterData.m_aJobData, bNewJobData ? sal_True : sal_False ); maPrinterData.m_aPrinterGfx.Init( maPrinterData.m_aPrintJob ); |