Lines Matching refs:mppOptions
164 mppOptions( 0 ), in Sane()
288 if( mppOptions ) in ReloadOptions()
289 delete [] mppOptions; in ReloadOptions()
290 mppOptions = (const SANE_Option_Descriptor**)new SANE_Option_Descriptor*[ mnOptions ]; in ReloadOptions()
291 mppOptions[ 0 ] = (SANE_Option_Descriptor*)pZero; in ReloadOptions()
293 mppOptions[ i ] = (SANE_Option_Descriptor*) in ReloadOptions()
341 delete [] mppOptions; in Close()
342 mppOptions = 0; in Close()
354 if( mppOptions[i]->name && aOption.Equals( mppOptions[i]->name ) ) in GetOptionByName()
362 if( ! maHandle || mppOptions[n]->type != SANE_TYPE_BOOL ) in GetOptionValue()
376 if( ! maHandle || mppOptions[n]->type != SANE_TYPE_STRING ) in GetOptionValue()
378 char* pRet = new char[mppOptions[n]->size+1]; in GetOptionValue()
393 if( ! maHandle || ( mppOptions[n]->type != SANE_TYPE_INT && in GetOptionValue()
394 mppOptions[n]->type != SANE_TYPE_FIXED ) ) in GetOptionValue()
397 SANE_Word* pRet = new SANE_Word[mppOptions[n]->size/sizeof(SANE_Word)]; in GetOptionValue()
402 if( mppOptions[n]->type == SANE_TYPE_INT ) in GetOptionValue()
413 if( ! maHandle || ! ( mppOptions[n]->type == SANE_TYPE_FIXED || in GetOptionValue()
414 mppOptions[n]->type == SANE_TYPE_INT ) ) in GetOptionValue()
417 SANE_Word* pFixedSet = new SANE_Word[mppOptions[n]->size/sizeof(SANE_Word)]; in GetOptionValue()
424 for( size_t i = 0; i <mppOptions[n]->size/sizeof(SANE_Word); i++ ) in GetOptionValue()
426 if( mppOptions[n]->type == SANE_TYPE_FIXED ) in GetOptionValue()
437 if( ! maHandle || mppOptions[n]->type != SANE_TYPE_BOOL ) in SetOptionValue()
448 if( ! maHandle || mppOptions[n]->type != SANE_TYPE_STRING ) in SetOptionValue()
461 if( ! maHandle || ( mppOptions[n]->type != SANE_TYPE_INT && in SetOptionValue()
462 mppOptions[n]->type != SANE_TYPE_FIXED ) ) in SetOptionValue()
466 if( mppOptions[n]->size/sizeof(SANE_Word) > 1 ) in SetOptionValue()
468 SANE_Word* pSet = new SANE_Word[mppOptions[n]->size/sizeof(SANE_Word)]; in SetOptionValue()
472 pSet[nElement] = mppOptions[n]->type == SANE_TYPE_INT ? in SetOptionValue()
481 mppOptions[n]->type == SANE_TYPE_INT ? in SetOptionValue()
493 if( ! maHandle || ( mppOptions[n]->type != SANE_TYPE_INT && in SetOptionValue()
494 mppOptions[n]->type != SANE_TYPE_FIXED ) ) in SetOptionValue()
496 SANE_Word* pFixedSet = new SANE_Word[mppOptions[n]->size/sizeof(SANE_Word)]; in SetOptionValue()
497 for( size_t i = 0; i < mppOptions[n]->size/sizeof(SANE_Word); i++ ) in SetOptionValue()
499 if( mppOptions[n]->type == SANE_TYPE_FIXED ) in SetOptionValue()
542 pDescArray = (SANE_Option_Descriptor**)mppOptions; in CheckConsistency()
543 if( mppOptions ) in CheckConsistency()
544 pZero = (SANE_Option_Descriptor*)mppOptions[0]; in CheckConsistency()
550 if( pDescArray != mppOptions ) in CheckConsistency()
552 if( pZero != mppOptions[0] ) in CheckConsistency()
908 if( mppOptions[n]->constraint_type != SANE_CONSTRAINT_RANGE && in GetRange()
909 mppOptions[n]->constraint_type != SANE_CONSTRAINT_WORD_LIST ) in GetRange()
916 sal_Bool bIsFixed = mppOptions[n]->type == SANE_TYPE_FIXED ? sal_True : sal_False; in GetRange()
918 dbg_msg( "Sane::GetRange of option %s ", mppOptions[n]->name ); in GetRange()
919 if(mppOptions[n]->constraint_type == SANE_CONSTRAINT_RANGE ) in GetRange()
924 fMin = SANE_UNFIX( mppOptions[n]->constraint.range->min ); in GetRange()
925 fMax = SANE_UNFIX( mppOptions[n]->constraint.range->max ); in GetRange()
926 fQuant = SANE_UNFIX( mppOptions[n]->constraint.range->quant ); in GetRange()
930 fMin = (double)mppOptions[n]->constraint.range->min; in GetRange()
931 fMax = (double)mppOptions[n]->constraint.range->max; in GetRange()
932 fQuant = (double)mppOptions[n]->constraint.range->quant; in GetRange()
958 nItems = mppOptions[n]->constraint.word_list[0]; in GetRange()
963 SANE_UNFIX( mppOptions[n]->constraint.word_list[i+1] ) : in GetRange()
964 (double)mppOptions[n]->constraint.word_list[i+1]; in GetRange()
985 SANE_Unit nUnit = mppOptions[n]->unit; in GetOptionUnitName()