Lines Matching refs:nValue
59 void PercentField::SetRefValue(sal_Int64 nValue) in SetRefValue() argument
63 nRefValue = nValue; in SetRefValue()
165 sal_Int64 nValue = Convert(nNewValue, eInUnit, eOldUnit); in SetPrcntValue() local
166 nAktWidth = ConvertValue(nValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP); in SetPrcntValue()
192 sal_Int64 nValue = Convert(nNewValue, eInUnit, eOldUnit); in SetUserValue() local
193 nAktWidth = ConvertValue(nValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP); in SetUserValue()
261 sal_Int64 PercentField::NormalizePercent(sal_Int64 nValue) in NormalizePercent() argument
264 nValue = MetricField::Normalize(nValue); in NormalizePercent()
266 nValue = nValue * ImpPower10(nOldDigits); in NormalizePercent()
268 return nValue; in NormalizePercent()
275 sal_Int64 PercentField::DenormalizePercent(sal_Int64 nValue) in DenormalizePercent() argument
278 nValue = MetricField::Denormalize(nValue); in DenormalizePercent()
282 nValue = ((nValue+(nFactor/2)) / nFactor); in DenormalizePercent()
285 return nValue; in DenormalizePercent()
307 sal_Int64 nValue = 1; in ImpPower10() local
310 nValue *= 10; in ImpPower10()
312 return nValue; in ImpPower10()
331 sal_Int64 PercentField::Convert(sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) in Convert() argument
336 return nValue; in Convert()
341 sal_Int64 nTwipValue = (nRefValue * nValue + 50) / 100; in Convert()
353 nValue = DenormalizePercent(nValue); in Convert()
356 nAktWidth = nValue; in Convert()
358 nAktWidth = ConvertValue(nValue, 0, nOldDigits, eInUnit, FUNIT_TWIP); in Convert()
363 return ConvertValue(nValue, 0, nOldDigits, eInUnit, eOutUnit); in Convert()