Lines Matching refs:pKey
737 const PPDKey* pKey = it->second; in PPDParser() local
739 switch( pKey->m_eSetupType ) in PPDParser()
750 BSTRING( pKey->getKey() ).GetBuffer(), in PPDParser()
751 BSTRING( pKey->m_aUITranslation ).GetBuffer(), in PPDParser()
752 pKey->countValues(), in PPDParser()
753 pKey->m_nOrderDependency, in PPDParser()
755 for( int j = 0; j < pKey->countValues(); j++ ) in PPDParser()
758 const PPDValue* pValue = pKey->getValue( j ); in PPDParser()
759 if( pValue == pKey->m_pDefaultValue ) in PPDParser()
792 const PPDKey* pKey; in PPDParser() local
826 if( (pKey = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "ModelName" ) ) )) ) in PPDParser()
827 m_aPrinterName = pKey->getValue( 0 )->m_aValue; in PPDParser()
828 if( (pKey = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "NickName" ) ) )) ) in PPDParser()
829 m_aNickName = pKey->getValue( 0 )->m_aValue; in PPDParser()
830 if( (pKey = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "ColorDevice" ) ) )) ) in PPDParser()
831 …m_bColorDevice = pKey->getValue( 0 )->m_aValue.CompareIgnoreCaseToAscii( "true", 4 ) == COMPARE_EQ… in PPDParser()
833 if( (pKey = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "LanguageLevel" ) ) )) ) in PPDParser()
834 m_nLanguageLevel = pKey->getValue( 0 )->m_aValue.ToInt32(); in PPDParser()
835 if( (pKey = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "TTRasterizer" ) ) )) ) in PPDParser()
836 … m_bType42Capable = pKey->getValue( 0 )->m_aValue.EqualsIgnoreCaseAscii( "Type42" ) ? true : false; in PPDParser()
846 void PPDParser::insertKey( const String& rKey, PPDKey* pKey ) in insertKey() argument
848 m_aKeys[ rKey ] = pKey; in insertKey()
849 m_aOrderedKeys.push_back( pKey ); in insertKey()
863 bool PPDParser::hasKey( const PPDKey* pKey ) const in hasKey()
866 pKey ? in hasKey()
867 ( m_aKeys.find( pKey->getKey() ) != m_aKeys.end() ? true : false ) : in hasKey()
1084 PPDKey* pKey = NULL; in parse() local
1088 pKey = new PPDKey( aUniKey ); in parse()
1089 insertKey( aUniKey, pKey ); in parse()
1092 pKey = keyit->second; in parse()
1097 PPDValue* pValue = pKey->insertValue( aOption ); in parse()
1109 if( bQuery && pKey->m_bQueryValue == sal_False ) in parse()
1111 pKey->m_aQueryValue = *pValue; in parse()
1112 pKey->m_bQueryValue = true; in parse()
1113 pKey->eraseValue( pValue->m_aOption ); in parse()
1132 PPDKey* pKey = keyit->second; in parse() local
1133 const PPDValue* pDefValue = pKey->getValue( aOption ); in parse()
1134 if( pKey->m_pDefaultValue == NULL ) in parse()
1135 pKey->m_pDefaultValue = pDefValue; in parse()
1143 PPDKey* pKey = new PPDKey( aKey ); in parse() local
1144 PPDValue* pNewValue = pKey->insertValue( aOption ); in parse()
1146 insertKey( aKey, pKey ); in parse()
1176 PPDKey* pKey; in parseOpenUI() local
1179 pKey = new PPDKey( aUniKey ); in parseOpenUI()
1180 insertKey( aUniKey, pKey ); in parseOpenUI()
1183 pKey = keyit->second; in parseOpenUI()
1185 pKey->m_bUIOption = true; in parseOpenUI()
1186 m_pTranslator->insertKey( pKey->getKey(), aTranslation ); in parseOpenUI()
1190 pKey->m_eUIType = PPDKey::Boolean; in parseOpenUI()
1192 pKey->m_eUIType = PPDKey::PickMany; in parseOpenUI()
1194 pKey->m_eUIType = PPDKey::PickOne; in parseOpenUI()
1211 PPDKey* pKey; in parseOrderDependency() local
1215 pKey = new PPDKey( aKey ); in parseOrderDependency()
1216 insertKey( aKey, pKey ); in parseOrderDependency()
1219 pKey = keyit->second; in parseOrderDependency()
1221 pKey->m_nOrderDependency = nOrder; in parseOrderDependency()
1223 pKey->m_eSetupType = PPDKey::ExitServer; in parseOrderDependency()
1225 pKey->m_eSetupType = PPDKey::Prolog; in parseOrderDependency()
1227 pKey->m_eSetupType = PPDKey::DocumentSetup; in parseOrderDependency()
1229 pKey->m_eSetupType = PPDKey::PageSetup; in parseOrderDependency()
1231 pKey->m_eSetupType = PPDKey::JCLSetup; in parseOrderDependency()
1233 pKey->m_eSetupType = PPDKey::AnySetup; in parseOrderDependency()
1810 const PPDValue* PPDContext::getValue( const PPDKey* pKey ) const in getValue()
1816 it = m_aCurrentValues.find( pKey ); in getValue()
1820 if( ! m_pParser->hasKey( pKey ) ) in getValue()
1823 const PPDValue* pValue = pKey->getDefaultValue(); in getValue()
1825 pValue = pKey->getValue( 0 ); in getValue()
1832 const PPDValue* PPDContext::setValue( const PPDKey* pKey, const PPDValue* pValue, bool bDontCareFor… in setValue() argument
1834 if( ! m_pParser || ! pKey ) in setValue()
1839 if( ! m_pParser->hasKey( pKey ) ) in setValue()
1847 m_aCurrentValues[ pKey ] = pValue; in setValue()
1849 else if( checkConstraints( pKey, pValue, true ) ) in setValue()
1851 m_aCurrentValues[ pKey ] = pValue; in setValue()
1857 if( it->first != pKey && in setValue()
1864 pKey->getKey().GetStr(), in setValue()
1876 m_aCurrentValues[ pKey ] = NULL; in setValue()
1883 bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pValue ) in checkConstraints() argument
1885 if( ! m_pParser || ! pKey || ! pValue ) in checkConstraints()
1889 if( m_aCurrentValues.find( pKey ) != m_aCurrentValues.end() ) in checkConstraints()
1890 return checkConstraints( pKey, pValue, false ); in checkConstraints()
1894 if( m_pParser->hasKey( pKey ) ) in checkConstraints()
1896 const PPDValue* pDefValue = pKey->getDefaultValue(); in checkConstraints()
1897 m_aCurrentValues[ pKey ] = pDefValue; in checkConstraints()
1898 bRet = checkConstraints( pKey, pValue, false ); in checkConstraints()
1899 m_aCurrentValues.erase( pKey ); in checkConstraints()
1907 bool PPDContext::resetValue( const PPDKey* pKey, bool bDefaultable ) in resetValue() argument
1909 if( ! pKey || ! m_pParser || ! m_pParser->hasKey( pKey ) ) in resetValue()
1912 const PPDValue* pResetValue = pKey->getValue( String( RTL_CONSTASCII_USTRINGPARAM( "None" ) ) ); in resetValue()
1914 pResetValue = pKey->getValue( String( RTL_CONSTASCII_USTRINGPARAM( "False" ) ) ); in resetValue()
1916 pResetValue = pKey->getDefaultValue(); in resetValue()
1918 … bool bRet = pResetValue ? ( setValue( pKey, pResetValue ) == pResetValue ? true : false ) : false; in resetValue()
1925 bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pNewValue, bool bDoReset ) in checkConstraints() argument
1934 if( pKey->getValue( pNewValue->m_aOption ) != pNewValue ) in checkConstraints()
1940 pNewValue == pKey->getDefaultValue() ) in checkConstraints()
1948 if( ! pLeft || ! pRight || ( pKey != pLeft && pKey != pRight ) ) in checkConstraints()
1951 const PPDKey* pOtherKey = pKey == pLeft ? pRight : pLeft; in checkConstraints()
1952 const PPDValue* pOtherKeyOption = pKey == pLeft ? it->m_pOption2 : it->m_pOption1; in checkConstraints()
1953 const PPDValue* pKeyOption = pKey == pLeft ? it->m_pOption1 : it->m_pOption2; in checkConstraints()
2013 void PPDContext::getUnconstrainedValues( const PPDKey* pKey, ::std::list< const PPDValue* >& rValue… in getUnconstrainedValues() argument
2017 if( ! m_pParser || ! pKey || ! m_pParser->hasKey( pKey ) ) in getUnconstrainedValues()
2020 int nValues = pKey->countValues(); in getUnconstrainedValues()
2023 const PPDValue* pValue = pKey->getValue( i ); in getUnconstrainedValues()
2024 if( checkConstraints( pKey, pValue ) ) in getUnconstrainedValues()
2092 …const PPDKey* pKey = m_pParser->getKey( String( aLine.Copy( 0, nPos ), RTL_TEXTENCODING_MS_1252 ) … in rebuildFromStreamBuffer() local
2093 if( pKey ) in rebuildFromStreamBuffer()
2098 pValue = pKey->getValue( aOption ); in rebuildFromStreamBuffer()
2099 m_aCurrentValues[ pKey ] = pValue; in rebuildFromStreamBuffer()
2119 … const PPDKey* pKey = m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Resolution" ) ) ); in getRenderResolution() local
2120 if( pKey ) in getRenderResolution()
2122 const PPDValue* pValue = getValue( pKey ); in getRenderResolution()
2146 … const PPDKey* pKey = m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) ); in getPageSize() local
2147 if( pKey ) in getPageSize()
2149 const PPDValue* pValue = getValue( pKey ); in getPageSize()