Lines Matching refs:nTargetUnit
58 sal_Int16 nTargetUnit /* = MeasureUnit::MM_100TH */, in convertMeasure() argument
111 if( MeasureUnit::PERCENT == nTargetUnit ) in convertMeasure()
116 else if( MeasureUnit::PIXEL == nTargetUnit ) in convertMeasure()
127 OSL_ENSURE( MeasureUnit::TWIP == nTargetUnit || MeasureUnit::POINT == nTargetUnit || in convertMeasure()
128 …MeasureUnit::MM_100TH == nTargetUnit || MeasureUnit::MM_10TH == nTargetUnit, "unit is not supporte… in convertMeasure()
133 if( MeasureUnit::TWIP == nTargetUnit ) in convertMeasure()
167 else if( MeasureUnit::MM_100TH == nTargetUnit || MeasureUnit::MM_10TH == nTargetUnit ) in convertMeasure()
169 double nScaleFactor = (MeasureUnit::MM_100TH == nTargetUnit) ? 100.0 : 10.0; in convertMeasure()
202 else if( MeasureUnit::POINT == nTargetUnit ) in convertMeasure()
266 sal_Int16 nTargetUnit /* = MeasureUnit::INCH */ ) in convertMeasure() argument
272 (void)nTargetUnit; in convertMeasure()
276 OSL_ENSURE( nTargetUnit == MeasureUnit::PERCENT, in convertMeasure()
299 switch( nTargetUnit ) in convertMeasure()
303 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit,"output unit not supported for twip values" ); in convertMeasure()
330 OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, in convertMeasure()
343 OSL_ENSURE( MeasureUnit::POINT == nTargetUnit, in convertMeasure()
354 switch( nTargetUnit ) in convertMeasure()
358 OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, in convertMeasure()
386 OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, in convertMeasure()
618 sal_Int16 nTargetUnit) in convertDouble() argument
622 …OSL_ENSURE( nTargetUnit == MeasureUnit::PERCENT, "MeasureUnit::PERCENT only maps to MeasureUnit::P… in convertDouble()
630 double fFactor = GetConversionFactor(sUnit, nSourceUnit, nTargetUnit); in convertDouble()
647 const ::rtl::OUString& rString, sal_Int16 nTargetUnit) in convertDouble() argument
649 sal_Int16 nSourceUnit = GetUnitFromString(rString, nTargetUnit); in convertDouble()
651 return convertDouble(rValue, rString, nSourceUnit, nTargetUnit ); in convertDouble()
656 const ::rtl::OUString& rString, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit) in convertDouble() argument
664 double fFactor = GetConversionFactor(sUnit, nSourceUnit, nTargetUnit); in convertDouble()
1831 …er::GetConversionFactor(::rtl::OUStringBuffer& rUnit, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit) in GetConversionFactor() argument
1838 if(nSourceUnit != nTargetUnit) in GetConversionFactor()
1844 switch(nTargetUnit) in GetConversionFactor()
1849 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for twip values"); in GetConversionFactor()
1875 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for twip values"); in GetConversionFactor()
1886 switch(nTargetUnit) in GetConversionFactor()
1908 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for pt values"); in GetConversionFactor()
1918 switch(nTargetUnit) in GetConversionFactor()
1923 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for 1/100mm values"); in GetConversionFactor()
1949 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for 1/100mm values"); in GetConversionFactor()
1960 switch(nTargetUnit) in GetConversionFactor()
1965 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for 1/100mm values"); in GetConversionFactor()
1991 … OSL_ENSURE( MeasureUnit::INCH == nTargetUnit, "output unit not supported for 1/100mm values"); in GetConversionFactor()