summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/print/genprnpsp.cxx8
-rw-r--r--vcl/generic/print/printerjob.cxx8
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 );