Lines Matching refs:nOption

168 	int nOption, i, nValue;  in InitFields()  local
189 nOption = mrSane.GetOptionByName( "resolution" ); in InitFields()
190 if( nOption != -1 ) in InitFields()
194 bSuccess = mrSane.GetOptionValue( nOption, fRes ); in InitFields()
201 nValue = mrSane.GetRange( nOption, pDouble ); in InitFields()
267 nOption = pOptionName ? mrSane.GetOptionByName( pOptionName ) : -1; in InitFields()
269 if( nOption != -1 ) in InitFields()
271 bSuccess = mrSane.GetOptionValue( nOption, fValue, 0 ); in InitFields()
274 if( mrSane.GetOptionUnit( nOption ) == SANE_UNIT_MM ) in InitFields()
292 nValue = mrSane.GetRange( nOption, pDouble ); in InitFields()
524 …int nOption = mrSane.GetOptionByName( ByteString( aOption, osl_getThreadTextEncoding() ).GetBuffer… in IMPL_LINK() local
525 if( nOption != -1 && nOption != mnCurrentOption ) in IMPL_LINK()
528 mnCurrentOption = nOption; in IMPL_LINK()
597 int nOption = mrSane.GetOptionByName( "resolution" ); in IMPL_LINK() local
598 if( nOption != -1 ) in IMPL_LINK()
601 int nValues = mrSane.GetRange( nOption, pDouble ); in IMPL_LINK()
708 int nOption = mrSane.GetOptionByName( "preview" ); in AcquirePreview() local
709 if( nOption == -1 ) in AcquirePreview()
717 mrSane.SetOptionValue( nOption, (sal_Bool)sal_True ); in AcquirePreview()
1197 int nOption = mrSane.GetOptionByName( aString.GetBuffer() ); in LoadState() local
1198 if( nOption != -1 ) in LoadState()
1204 mrSane.SetOptionValue( nOption, aBOOL ); in LoadState()
1209 mrSane.SetOptionValue( nOption, String( aValue, osl_getThreadTextEncoding() ) ); in LoadState()
1316 int nOption = mrSane.GetOptionByName( pSaveOptions[i] ); in SaveState() local
1317 if( nOption > -1 ) in SaveState()
1319 SANE_Value_Type nType = mrSane.GetOptionType( nOption ); in SaveState()
1325 if( mrSane.GetOptionValue( nOption, bValue ) ) in SaveState()
1337 if( mrSane.GetOptionValue( nOption, aValue ) ) in SaveState()
1352 for( n = 0; n < mrSane.GetOptionElements( nOption ); n++ ) in SaveState()
1354 if( ! mrSane.GetOptionValue( nOption, fValue, n ) ) in SaveState()
1361 if( n >= mrSane.GetOptionElements( nOption ) ) in SaveState()
1379 int nOption; in SetAdjustedNumericalValue() local
1380 …if( ! Sane::IsSane() || ! mrSane.IsOpen() || ( nOption = mrSane.GetOptionByName( pOption ) ) == -1… in SetAdjustedNumericalValue()
1383 if( nElement < 0 || nElement >= mrSane.GetOptionElements( nOption ) ) in SetAdjustedNumericalValue()
1388 if( ( nValues = mrSane.GetRange( nOption, pValues ) ) < 0 ) in SetAdjustedNumericalValue()
1418 mrSane.SetOptionValue( nOption, fValue, nElement ); in SetAdjustedNumericalValue()