diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-05-18 09:46:09 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-05-18 09:46:09 +0000 |
commit | 7eedebf194e960f03e0697dff7a4a6d64433b5fc (patch) | |
tree | eb2b3e0fff73383884af6505ab4cdb34f25b0594 /psprint | |
parent | cc0ee014a32086195782ba087378bc8d03179bfb (diff) |
INTEGRATION: CWS vcl21 (1.2.2); FILE MERGED
2004/03/23 13:53:17 pl 1.2.2.1: #i26851# fix default PPD case when ENABLE_CUPS is unset
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/printer/cupsmgr.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/psprint/source/printer/cupsmgr.cxx b/psprint/source/printer/cupsmgr.cxx index 514c160049a4..191ed8ca8336 100644 --- a/psprint/source/printer/cupsmgr.cxx +++ b/psprint/source/printer/cupsmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cupsmgr.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: obo $ $Date: 2004-03-17 10:51:03 $ + * last change: $Author: kz $ $Date: 2004-05-18 10:46:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -448,14 +448,15 @@ static void updatePrinterContextInfo( ppd_group_t* pPPDGroup, PrinterInfo& rInfo const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter ) { const PPDParser* pNewParser = NULL; -#ifdef ENABLE_CUPS - rtl_TextEncoding aEncoding = osl_getThreadTextEncoding(); - OUString aPrinter; + if( rPrinter.compareToAscii( "CUPS:", 5 ) == 0 ) aPrinter = rPrinter.copy( 5 ); else aPrinter = rPrinter; + +#ifdef ENABLE_CUPS + rtl_TextEncoding aEncoding = osl_getThreadTextEncoding(); OString aPrinterName( OUStringToOString( aPrinter, aEncoding ) ); const char* pPPDFile = m_pCUPSWrapper->cupsGetPPD( aPrinterName.getStr() ); |