Lines Matching refs:aPrinter
394 Printer aPrinter; in initialize() local
396 aPrinter.m_aInfo = m_aGlobalDefaults; in initialize()
400 aPrinter.m_aInfo.m_aFontSubstitutes.clear(); in initialize()
401 aPrinter.m_aInfo.m_aFontSubstitutions.clear(); in initialize()
404 aPrinter.m_aInfo.m_aPrinterName = aPrinterName; in initialize()
405 … aPrinter.m_aInfo.m_aDriverName = String( aValue.Copy( 0, nNamePos ), RTL_TEXTENCODING_UTF8 ); in initialize()
410 if( aPrinter.m_aInfo.m_aDriverName.compareToAscii( "CUPS:", 5 ) != 0 ) in initialize()
412 … aPrinter.m_aInfo.m_pParser = PPDParser::getParser( aPrinter.m_aInfo.m_aDriverName ); in initialize()
413 aPrinter.m_aInfo.m_aContext.setParser( aPrinter.m_aInfo.m_pParser ); in initialize()
417 if( ! aPrinter.m_aInfo.m_pParser ) in initialize()
429 …const PPDKey* pPrinterKey = pDefKey ? aPrinter.m_aInfo.m_pParser->getKey( pDefKey->getKey() ) : NU… in initialize()
438 aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, pPrinterValue ); in initialize()
441 aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, NULL ); in initialize()
459 aPrinter.m_aInfo.m_aCommand = String( aValue, RTL_TEXTENCODING_UTF8 ); in initialize()
463 aPrinter.m_aInfo.m_aQuickCommand = String( aValue, RTL_TEXTENCODING_UTF8 ); in initialize()
466 aPrinter.m_aInfo.m_aFeatures = String( aValue, RTL_TEXTENCODING_UTF8 ); in initialize()
474 aPrinter.m_aInfo.m_aLocation = String( aValue, RTL_TEXTENCODING_UTF8 ); in initialize()
477 aPrinter.m_aInfo.m_aComment = String( aValue, RTL_TEXTENCODING_UTF8 ); in initialize()
481 aPrinter.m_aInfo.m_nCopies = aValue.ToInt32(); in initialize()
485 …aPrinter.m_aInfo.m_eOrientation = aValue.EqualsIgnoreCaseAscii( "Landscape" ) ? orientation::Lands… in initialize()
490 aPrinter.m_aInfo.m_nLeftMarginAdjust = aValue.GetToken( 0, ',' ).ToInt32(); in initialize()
491 aPrinter.m_aInfo.m_nRightMarginAdjust = aValue.GetToken( 1, ',' ).ToInt32(); in initialize()
492 aPrinter.m_aInfo.m_nTopMarginAdjust = aValue.GetToken( 2, ',' ).ToInt32(); in initialize()
493 aPrinter.m_aInfo.m_nBottomMarginAdjust = aValue.GetToken( 3, ',' ).ToInt32(); in initialize()
498 aPrinter.m_aInfo.m_nColorDepth = aValue.ToInt32(); in initialize()
502 aPrinter.m_aInfo.m_nColorDevice = aValue.ToInt32(); in initialize()
506 aPrinter.m_aInfo.m_nPSLevel = aValue.ToInt32(); in initialize()
510 aPrinter.m_aInfo.m_nPDFDevice = aValue.ToInt32(); in initialize()
514 aPrinter.m_aInfo.m_bPerformFontSubstitution = true; in initialize()
516 aPrinter.m_aInfo.m_bPerformFontSubstitution = false; in initialize()
524 if( aKey.CompareTo( "PPD_", 4 ) == COMPARE_EQUAL && aPrinter.m_aInfo.m_pParser ) in initialize()
527 …const PPDKey* pKey = aPrinter.m_aInfo.m_pParser->getKey( String( aKey.Copy( 4 ), RTL_TEXTENCODING_… in initialize()
530 aPrinter.m_aInfo.m_aContext. in initialize()
539 …aPrinter.m_aInfo.m_aFontSubstitutes[ OStringToOUString( aKey.Copy( 10 ), RTL_TEXTENCODING_ISO_8859… in initialize()
543 setDefaultPaper( aPrinter.m_aInfo.m_aContext ); in initialize()
544 fillFontSubstitutions( aPrinter.m_aInfo ); in initialize()
547 FileBase::getFileURLFromSystemPath( aFile.PathToFileName(), aPrinter.m_aFile ); in initialize()
548 aPrinter.m_bModified = false; in initialize()
549 aPrinter.m_aGroup = aConfig.GetGroupName( nGroup ); in initialize()
554 aPrinter.m_aAlternateFiles = find_it->second.m_aAlternateFiles; in initialize()
555 aPrinter.m_aAlternateFiles.push_front( find_it->second.m_aFile ); in initialize()
557 m_aPrinters[ aPrinterName ] = aPrinter; in initialize()
610 Printer aPrinter; in initialize() local
613 aPrinter.m_aInfo = aMergeInfo; in initialize()
614 aPrinter.m_aInfo.m_aPrinterName = aPrinterName; in initialize()
615 aPrinter.m_aInfo.m_aCommand = aCmd; in initialize()
616 aPrinter.m_aInfo.m_aComment = it->m_aComment; in initialize()
617 aPrinter.m_aInfo.m_aLocation = it->m_aLocation; in initialize()
618 aPrinter.m_bModified = false; in initialize()
619 …aPrinter.m_aGroup = ByteString( aPrinterName, aEncoding ); //provide group name … in initialize()
621 m_aPrinters[ aPrinterName ] = aPrinter; in initialize()
831 Printer aPrinter; in addPrinter() local
832 aPrinter.m_bModified = true; in addPrinter()
833 aPrinter.m_aInfo = m_aGlobalDefaults; in addPrinter()
834 aPrinter.m_aInfo.m_aDriverName = rDriverName; in addPrinter()
835 aPrinter.m_aInfo.m_pParser = pParser; in addPrinter()
836 aPrinter.m_aInfo.m_aContext.setParser( pParser ); in addPrinter()
837 aPrinter.m_aInfo.m_aPrinterName = rPrinterName; in addPrinter()
839 fillFontSubstitutions( aPrinter.m_aInfo ); in addPrinter()
845 …const PPDKey* pPrinterKey = pDefKey ? aPrinter.m_aInfo.m_pParser->getKey( pDefKey->getKey() ) : NU… in addPrinter()
854 aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, pPrinterValue ); in addPrinter()
857 aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, NULL ); in addPrinter()
861 m_aPrinters[ rPrinterName ] = aPrinter; in addPrinter()