summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-05-31 16:02:11 +0000
committerKurt Zenker <kz@openoffice.org>2005-05-31 16:02:11 +0000
commit633517be1c31be9a75106553e2c1a9d0f780af60 (patch)
tree47633353788fbc3d652d0296b0e8a855d541c249 /psprint
parent42df1995534a91e2adf9477c19575bcb73216a94 (diff)
INTEGRATION: CWS macosx07 (1.28.10); FILE MERGED
2005/05/05 23:37:55 ericb 1.28.10.1: i48276 /printerinfomanager.hxx for ps2pdf/pstopdf problem on Mac OSX
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/printer/printerinfomanager.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/psprint/source/printer/printerinfomanager.cxx b/psprint/source/printer/printerinfomanager.cxx
index 5ef7f13836c3..5ad8f6b92a8f 100644
--- a/psprint/source/printer/printerinfomanager.cxx
+++ b/psprint/source/printer/printerinfomanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: printerinfomanager.cxx,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: kz $ $Date: 2005-03-18 17:47:17 $
+ * last change: $Author: kz $ $Date: 2005-05-31 17:02:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1575,7 +1575,7 @@ sal_Int32 macxp_GetSystemPrintMethod( void )
}
else
{
- /* Test for MacOS X 10.2/Darwin6 CUPS printing */
+ /* Test for MacOS X 10.2/Darwin6 or later CUPS printing */
err = stat( "/usr/bin/lpstat", &status );
if ( err == 0 )
{
@@ -1627,8 +1627,11 @@ sal_Int32 macxp_GetSystemPrintFormat( void )
pPDFOverride = getenv( "OOO_PRINT_PS_DIRECTLY" );
if ( pPDFOverride == NULL )
{
- /* Now we have to check for ps2pdf to make sure we can do the conversion */
- err = stat( kApplePS2PDFLocation, &status );
+ /* Now we have to check for pstopdf or ps2pdf to make sure we can do the conversion */
+ err = stat( kApplePsToPdfLocation, &status );
+ if ( err != 0 )
+ err = stat( kApplePS2PDFLocation, &status );
+
if ( err == 0 )
{
printFormat = kApplePrintingUsePDF;