Lines Matching refs:second
554 aPrinter.m_aAlternateFiles = find_it->second.m_aAlternateFiles; in initialize()
555 aPrinter.m_aAlternateFiles.push_front( find_it->second.m_aFile ); in initialize()
644 return it != m_aPrinters.end() ? it->second.m_aInfo : aEmptyInfo; in getPrinterInfo()
657 it->second.m_aInfo = rNewInfo; in changePrinterInfo()
659 fillFontSubstitutions( it->second.m_aInfo ); in changePrinterInfo()
660 it->second.m_bModified = true; in changePrinterInfo()
698 Config* pGlobal = files.begin()->second; in writePrinterConfig()
705 if( ! it->second.m_bModified ) in writePrinterConfig()
714 OUString aToken( it->second.m_aInfo.m_aFeatures.getToken( 0, ',', nIndex ) ); in writePrinterConfig()
721 if( it->second.m_aFile.getLength() ) in writePrinterConfig()
724 if( files.find( it->second.m_aFile ) == files.end() ) in writePrinterConfig()
728 if( rofiles.find( it->second.m_aFile ) == rofiles.end() ) in writePrinterConfig()
730 if( checkWriteability( it->second.m_aFile ) ) in writePrinterConfig()
731 files[ it->second.m_aFile ] = new Config( it->second.m_aFile ); in writePrinterConfig()
740 rofiles[ it->second.m_aFile ] = 1; in writePrinterConfig()
743 it->second.m_aAlternateFiles.remove( it->second.m_aFile ); in writePrinterConfig()
744 it->second.m_aAlternateFiles.remove( files.begin()->first ); in writePrinterConfig()
745 it->second.m_aAlternateFiles.push_front( it->second.m_aFile ); in writePrinterConfig()
747 it->second.m_aFile = files.begin()->first; in writePrinterConfig()
752 it->second.m_aFile = files.begin()->first; in writePrinterConfig()
754 if( ! it->second.m_aGroup.getLength() ) // probably a new printer in writePrinterConfig()
755 … it->second.m_aGroup = OString( it->first.getStr(), it->first.getLength(), RTL_TEXTENCODING_UTF8 ); in writePrinterConfig()
757 if( files.find( it->second.m_aFile ) != files.end() ) in writePrinterConfig()
759 Config* pConfig = files[ it->second.m_aFile ]; in writePrinterConfig()
760 pConfig->DeleteGroup( it->second.m_aGroup ); // else some old keys may remain in writePrinterConfig()
761 pConfig->SetGroup( it->second.m_aGroup ); in writePrinterConfig()
763 ByteString aValue( String( it->second.m_aInfo.m_aDriverName ), RTL_TEXTENCODING_UTF8 ); in writePrinterConfig()
768 …pConfig->WriteKey( "Location", ByteString( String( it->second.m_aInfo.m_aLocation ), RTL_TEXTENCOD… in writePrinterConfig()
769 …pConfig->WriteKey( "Comment", ByteString( String( it->second.m_aInfo.m_aComment ), RTL_TEXTENCODIN… in writePrinterConfig()
770 …pConfig->WriteKey( "Command", ByteString( String( it->second.m_aInfo.m_aCommand ), RTL_TEXTENCODIN… in writePrinterConfig()
771 …pConfig->WriteKey( "QuickCommand", ByteString( String( it->second.m_aInfo.m_aQuickCommand ), RTL_T… in writePrinterConfig()
772 …pConfig->WriteKey( "Features", ByteString( String( it->second.m_aInfo.m_aFeatures ), RTL_TEXTENCOD… in writePrinterConfig()
773 … pConfig->WriteKey( "Copies", ByteString::CreateFromInt32( it->second.m_aInfo.m_nCopies ) ); in writePrinterConfig()
774 …pConfig->WriteKey( "Orientation", it->second.m_aInfo.m_eOrientation == orientation::Landscape ? "L… in writePrinterConfig()
775 … pConfig->WriteKey( "PSLevel", ByteString::CreateFromInt32( it->second.m_aInfo.m_nPSLevel ) ); in writePrinterConfig()
776 … pConfig->WriteKey( "PDFDevice", ByteString::CreateFromInt32( it->second.m_aInfo.m_nPDFDevice ) ); in writePrinterConfig()
777 …pConfig->WriteKey( "ColorDevice", ByteString::CreateFromInt32( it->second.m_aInfo.m_nColorDevice )… in writePrinterConfig()
778 …pConfig->WriteKey( "ColorDepth", ByteString::CreateFromInt32( it->second.m_aInfo.m_nColorDepth ) ); in writePrinterConfig()
779 aValue = ByteString::CreateFromInt32( it->second.m_aInfo.m_nLeftMarginAdjust ); in writePrinterConfig()
781 aValue += ByteString::CreateFromInt32( it->second.m_aInfo.m_nRightMarginAdjust ); in writePrinterConfig()
783 aValue += ByteString::CreateFromInt32( it->second.m_aInfo.m_nTopMarginAdjust ); in writePrinterConfig()
785 aValue += ByteString::CreateFromInt32( it->second.m_aInfo.m_nBottomMarginAdjust ); in writePrinterConfig()
788 if( it->second.m_aInfo.m_aDriverName.compareToAscii( "CUPS:", 5 ) != 0 ) in writePrinterConfig()
791 for( int i = 0; i < it->second.m_aInfo.m_aContext.countValuesModified(); i++ ) in writePrinterConfig()
793 const PPDKey* pKey = it->second.m_aInfo.m_aContext.getModifiedKey( i ); in writePrinterConfig()
797 const PPDValue* pValue = it->second.m_aInfo.m_aContext.getValue( pKey ); in writePrinterConfig()
804 …pConfig->WriteKey( "PerformFontSubstitution", it->second.m_aInfo.m_bPerformFontSubstitution ? "tru… in writePrinterConfig()
805 …hash_map< OUString, OUString, OUStringHash >::const_iterator subst = it->second.m_aInfo.m_aFontSub… in writePrinterConfig()
806 subst != it->second.m_aInfo.m_aFontSubstitutes.end(); ++subst ) in writePrinterConfig()
810 … pConfig->WriteKey( aKey, OUStringToOString( subst->second, RTL_TEXTENCODING_ISO_8859_1 ) ); in writePrinterConfig()
817 delete file_it->second; in writePrinterConfig()
888 if( it->second.m_aFile.getLength() ) in removePrinter()
894 if( ! checkWriteability( it->second.m_aFile ) ) in removePrinter()
898 … for( std::list< OUString >::const_iterator file_it = it->second.m_aAlternateFiles.begin(); in removePrinter()
899 file_it != it->second.m_aAlternateFiles.end() && bSuccess; ++file_it ) in removePrinter()
908 Config aConfig( it->second.m_aFile ); in removePrinter()
909 aConfig.DeleteGroup( it->second.m_aGroup ); in removePrinter()
911 … for( std::list< OUString >::const_iterator file_it = it->second.m_aAlternateFiles.begin(); in removePrinter()
912 file_it != it->second.m_aAlternateFiles.end() && bSuccess; ++file_it ) in removePrinter()
915 aAltConfig.DeleteGroup( it->second.m_aGroup ); in removePrinter()
943 it->second.m_bModified = true; in setDefaultPrinter()
945 it->second.m_bModified = true; in setDefaultPrinter()
990 aSubstitutions[ aFamily ] = subst->second.toAsciiLowerCase(); in fillFontSubstitutions()
1126 rData.m_pParser = it->second.m_aInfo.m_pParser; in setupJobContextData()
1127 rData.m_aContext = it->second.m_aInfo.m_aContext; in setupJobContextData()