Lines Matching refs:nValue
65 sal_Int64 nValue = 1; in ImplPower10() local
68 nValue *= 10; in ImplPower10()
70 return nValue; in ImplPower10()
210 double nValue = aStr.ToDouble(); in ImplNumericGetValue() local
214 nValue++; in ImplNumericGetValue()
216 nValue--; in ImplNumericGetValue()
219 rValue = nValue; in ImplNumericGetValue()
610 XubString NumericFormatter::CreateFieldText( sal_Int64 nValue ) const in CreateFieldText()
612 …return ImplGetLocaleDataWrapper().getNum( nValue, GetDecimalDigits(), IsUseThousandSep(), IsShowTr… in CreateFieldText()
673 Fraction NumericFormatter::ConvertToFraction( sal_Int64 nValue ) in ConvertToFraction() argument
676 return Fraction( (double)nValue/(double)ImplPower10( GetDecimalDigits() ) ); in ConvertToFraction()
690 sal_Int64 NumericFormatter::Normalize( sal_Int64 nValue ) const in Normalize()
692 return (nValue * ImplPower10( GetDecimalDigits() ) ); in Normalize()
697 sal_Int64 NumericFormatter::Denormalize( sal_Int64 nValue ) const in Denormalize()
701 if((nValue < ( SAL_MIN_INT64 + nFactor )) || in Denormalize()
702 (nValue > ( SAL_MAX_INT64 - nFactor ))) in Denormalize()
703 return ( nValue / nFactor ); in Denormalize()
704 if( nValue < 0 ) in Denormalize()
705 return ((nValue-(nFactor/2)) / nFactor ); in Denormalize()
707 return ((nValue+(nFactor/2)) / nFactor ); in Denormalize()
738 sal_Int64 nValue = GetValue(); in FieldUp() local
739 nValue += mnSpinSize; in FieldUp()
740 if ( nValue > mnMax ) in FieldUp()
741 nValue = mnMax; in FieldUp()
743 ImplNewFieldValue( nValue ); in FieldUp()
750 sal_Int64 nValue = GetValue(); in FieldDown() local
751 nValue -= mnSpinSize; in FieldDown()
752 if ( nValue < mnMin ) in FieldDown()
753 nValue = mnMin; in FieldDown()
755 ImplNewFieldValue( nValue ); in FieldDown()
1039 double nValue; in ReformatAll() local
1045 ImplNumericReformat( GetEntry( i ), nValue, aStr ); in ReformatAll()
1055 void NumericBox::InsertValue( sal_Int64 nValue, sal_uInt16 nPos ) in InsertValue() argument
1057 ComboBox::InsertEntry( CreateFieldText( nValue ), nPos ); in InsertValue()
1062 void NumericBox::RemoveValue( sal_Int64 nValue ) in RemoveValue() argument
1064 ComboBox::RemoveEntry( CreateFieldText( nValue ) ); in RemoveValue()
1071 double nValue = 0; in GetValue() local
1072 …ImplNumericGetValue( ComboBox::GetEntry( nPos ), nValue, GetDecimalDigits(), ImplGetLocaleDataWrap… in GetValue()
1073 return (sal_Int64)nValue; in GetValue()
1078 sal_uInt16 NumericBox::GetValuePos( sal_Int64 nValue ) const in GetValuePos()
1080 return ComboBox::GetEntryPos( CreateFieldText( nValue ) ); in GetValuePos()
1249 static double nonValueDoubleToValueDouble( double nValue ) in nonValueDoubleToValueDouble() argument
1251 return rtl::math::isFinite( nValue ) ? nValue : 0.0; in nonValueDoubleToValueDouble()
1254 sal_Int64 MetricField::ConvertValue( sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, in ConvertValue() argument
1258 (double)nValue, mnBaseValue, nDecDigits, eInUnit, eOutUnit ) ); in ConvertValue()
1273 sal_Int64 MetricField::ConvertValue( sal_Int64 nValue, sal_uInt16 nDigits, in ConvertValue() argument
1278 ConvertDoubleValue( nValue, nDigits, eInUnit, eOutUnit ) ) ); in ConvertValue()
1283 sal_Int64 MetricField::ConvertValue( sal_Int64 nValue, sal_uInt16 nDigits, in ConvertValue() argument
1290 ConvertDoubleValue( nValue, nDigits, eInUnit, eOutUnit ) ) ); in ConvertValue()
1295 double MetricField::ConvertDoubleValue( double nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, in ConvertDoubleValue() argument
1304 if ( (mnBaseValue <= 0) || (nValue <= 0) ) in ConvertDoubleValue()
1305 return nValue; in ConvertDoubleValue()
1317 return nValue; in ConvertDoubleValue()
1333 nValue *= nMult; in ConvertDoubleValue()
1336 nValue += ( nValue < 0 ) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue()
1337 nValue /= nDiv; in ConvertDoubleValue()
1341 return nValue; in ConvertDoubleValue()
1346 double MetricField::ConvertDoubleValue( double nValue, sal_uInt16 nDigits, in ConvertDoubleValue() argument
1358 return nValue; in ConvertDoubleValue()
1368 nValue += 5; in ConvertDoubleValue()
1369 nValue /= 10; in ConvertDoubleValue()
1377 nValue *= 10; in ConvertDoubleValue()
1391 nValue *= nMult; in ConvertDoubleValue()
1394 nValue += (nValue < 0) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue()
1395 nValue /= nDiv; in ConvertDoubleValue()
1398 return nValue; in ConvertDoubleValue()
1403 double MetricField::ConvertDoubleValue( double nValue, sal_uInt16 nDigits, in ConvertDoubleValue() argument
1415 return nValue; in ConvertDoubleValue()
1425 nValue *= 10; in ConvertDoubleValue()
1433 nValue += 5; in ConvertDoubleValue()
1434 nValue /= 10; in ConvertDoubleValue()
1448 nValue *= nMult; in ConvertDoubleValue()
1451 nValue += (nValue < 0) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue()
1452 nValue /= nDiv; in ConvertDoubleValue()
1455 return nValue; in ConvertDoubleValue()
1581 XubString MetricFormatter::CreateFieldText( sal_Int64 nValue ) const in CreateFieldText()
1583 XubString aStr = NumericFormatter::CreateFieldText( nValue ); in CreateFieldText()
1629 void MetricFormatter::SetValue( sal_Int64 nValue ) in SetValue() argument
1632 SetValue( nValue, FUNIT_NONE ); in SetValue()
2010 double nValue; in ReformatAll() local
2016 ImplMetricReformat( GetEntry( i ), nValue, aStr ); in ReformatAll()
2033 void MetricBox::InsertValue( sal_Int64 nValue, FieldUnit eInUnit, sal_uInt16 nPos ) in InsertValue() argument
2036 nValue = MetricField::ConvertValue( nValue, mnBaseValue, GetDecimalDigits(), in InsertValue()
2038 ComboBox::InsertEntry( CreateFieldText( nValue ), nPos ); in InsertValue()
2043 void MetricBox::RemoveValue( sal_Int64 nValue, FieldUnit eInUnit ) in RemoveValue() argument
2046 nValue = MetricField::ConvertValue( nValue, mnBaseValue, GetDecimalDigits(), in RemoveValue()
2048 ComboBox::RemoveEntry( CreateFieldText( nValue ) ); in RemoveValue()
2055 double nValue = 0; in GetValue() local
2056 ImplMetricGetValue( ComboBox::GetEntry( nPos ), nValue, mnBaseValue, in GetValue()
2060 …sal_Int64 nRetValue = MetricField::ConvertValue( (sal_Int64)nValue, mnBaseValue, GetDecimalDigits(… in GetValue()
2068 sal_uInt16 MetricBox::GetValuePos( sal_Int64 nValue, FieldUnit eInUnit ) const in GetValuePos() argument
2071 nValue = MetricField::ConvertValue( nValue, mnBaseValue, GetDecimalDigits(), in GetValuePos()
2073 return ComboBox::GetEntryPos( CreateFieldText( nValue ) ); in GetValuePos()
2116 double nValue; in ImplCurrencyReformat() local
2117 …if ( !ImplNumericGetValue( rStr, nValue, GetDecimalDigits(), ImplGetLocaleDataWrapper(), sal_True … in ImplCurrencyReformat()
2121 double nTempVal = nValue; in ImplCurrencyReformat()
2128 if ( GetErrorHdl().IsSet() && (nValue != nTempVal) ) in ImplCurrencyReformat()
2191 XubString CurrencyFormatter::CreateFieldText( sal_Int64 nValue ) const in CreateFieldText()
2193 …return ImplGetLocaleDataWrapper().getCurr( nValue, GetDecimalDigits(), GetCurrencySymbol(), IsUseT… in CreateFieldText()
2485 void CurrencyBox::InsertValue( sal_Int64 nValue, sal_uInt16 nPos ) in InsertValue() argument
2487 ComboBox::InsertEntry( CreateFieldText( nValue ), nPos ); in InsertValue()
2492 void CurrencyBox::RemoveValue( sal_Int64 nValue ) in RemoveValue() argument
2494 ComboBox::RemoveEntry( CreateFieldText( nValue ) ); in RemoveValue()
2501 double nValue = 0; in GetValue() local
2502 …ImplCurrencyGetValue( ComboBox::GetEntry( nPos ), nValue, GetDecimalDigits(), ImplGetLocaleDataWra… in GetValue()
2503 return (sal_Int64)nValue; in GetValue()
2508 sal_uInt16 CurrencyBox::GetValuePos( sal_Int64 nValue ) const in GetValuePos()
2510 return ComboBox::GetEntryPos( CreateFieldText( nValue ) ); in GetValuePos()