diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-07 08:43:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-12 11:56:41 +0200 |
commit | 556fe4ec7339892d63cb98bc9bfd09718944bf03 (patch) | |
tree | f4fe7f8e4ee1bb2f31f77c021e6e50209219616c /vcl/generic | |
parent | ff7ac85d4b657da2cd28b878325fd7c290b5c63b (diff) |
convert vcl/ppdparser.hxx from String to OUString
Change-Id: I8a95a98e5cc92e5bedb4813411afc86cc438fdad
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 8 | ||||
-rw-r--r-- | vcl/generic/print/printerjob.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx index 25f0162143fe..62e7b79af2e8 100644 --- a/vcl/generic/print/genprnpsp.cxx +++ b/vcl/generic/print/genprnpsp.cxx @@ -183,17 +183,17 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData ) pValue = rData.m_aContext.getValue( pKey ); if( pKey && pValue ) { - if( pValue->m_aOption.EqualsIgnoreCaseAscii( "None" ) || - pValue->m_aOption.EqualsIgnoreCaseAscii( "Simplex", 0, 7 ) + if( pValue->m_aOption.equalsIgnoreAsciiCase( "None" ) || + pValue->m_aOption.startsWithIgnoreAsciiCase( "Simplex" ) ) { pJobSetup->meDuplexMode = DUPLEX_OFF; } - else if( pValue->m_aOption.EqualsIgnoreCaseAscii( "DuplexNoTumble" ) ) + else if( pValue->m_aOption.equalsIgnoreAsciiCase( "DuplexNoTumble" ) ) { pJobSetup->meDuplexMode = DUPLEX_LONGEDGE; } - else if( pValue->m_aOption.EqualsIgnoreCaseAscii( "DuplexTumble" ) ) + else if( pValue->m_aOption.equalsIgnoreAsciiCase( "DuplexTumble" ) ) { pJobSetup->meDuplexMode = DUPLEX_SHORTEDGE; } diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx index 04c1739e601d..2af8923af271 100644 --- a/vcl/generic/print/printerjob.cxx +++ b/vcl/generic/print/printerjob.cxx @@ -760,9 +760,9 @@ bool PrinterJob::writeFeatureList( osl::File* pFile, const JobData& rJob, bool b if( GetPostscriptLevel( &rJob ) == 1 ) { bool bHavePS2 = - ( pValue->m_aValue.SearchAscii( "<<" ) != STRING_NOTFOUND ) + ( pValue->m_aValue.indexOf( "<<" ) != -1 ) || - ( pValue->m_aValue.SearchAscii( ">>" ) != STRING_NOTFOUND ); + ( pValue->m_aValue.indexOf( ">>" ) != -1 ); if( bHavePS2 ) continue; } @@ -843,8 +843,8 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData ) for( int i = 0; i < nValueCount; i++ ) { const PPDValue* pVal = pKey->getValue( i ); - patch_order.push_back( pVal->m_aOption.ToInt32() ); - if( patch_order.back() == 0 && ! pVal->m_aOption.EqualsAscii( "0" ) ) + patch_order.push_back( pVal->m_aOption.toInt32() ); + if( patch_order.back() == 0 && ! pVal->m_aOption.equalsAscii( "0" ) ) { WritePS( pFile, "% Warning: left out JobPatchFile option \"" ); OString aOption = OUStringToOString( pVal->m_aOption, RTL_TEXTENCODING_ASCII_US ); |