Lines Matching refs:eUnit
33 void SetFieldUnit( MetricField& rField, FieldUnit eUnit, sal_Bool bAll ) in SetFieldUnit() argument
42 switch ( eUnit ) in SetFieldUnit()
46 eUnit = FUNIT_CM; in SetFieldUnit()
51 eUnit = FUNIT_INCH; in SetFieldUnit()
56 rField.SetUnit( eUnit ); in SetFieldUnit()
57 switch( eUnit ) in SetFieldUnit()
71 if ( FUNIT_POINT == eUnit ) in SetFieldUnit()
90 void SetFieldUnit( MetricBox& rBox, FieldUnit eUnit, sal_Bool bAll ) in SetFieldUnit() argument
97 switch ( eUnit ) in SetFieldUnit()
101 eUnit = FUNIT_CM; in SetFieldUnit()
106 eUnit = FUNIT_INCH; in SetFieldUnit()
111 rBox.SetUnit( eUnit ); in SetFieldUnit()
113 if ( FUNIT_POINT == eUnit && rBox.GetDecimalDigits() > 1 ) in SetFieldUnit()
126 void SetMetricValue( MetricField& rField, long nCoreValue, SfxMapUnit eUnit ) in SetMetricValue() argument
128 sal_Int64 nVal = OutputDevice::LogicToLogic( nCoreValue, (MapUnit)eUnit, MAP_100TH_MM ); in SetMetricValue()
136 long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit ) in GetCoreValue() argument
154 …t64 nUnitVal = OutputDevice::LogicToLogic( static_cast<long>(nVal), MAP_100TH_MM, (MapUnit)eUnit ); in GetCoreValue()
162 long CalcToUnit( float nIn, SfxMapUnit eUnit ) in CalcToUnit() argument
166 DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP || in CalcToUnit()
167 eUnit == SFX_MAPUNIT_100TH_MM || in CalcToUnit()
168 eUnit == SFX_MAPUNIT_10TH_MM || in CalcToUnit()
169 eUnit == SFX_MAPUNIT_MM || in CalcToUnit()
170 eUnit == SFX_MAPUNIT_CM, "this unit is not implemented" ); in CalcToUnit()
174 if ( SFX_MAPUNIT_TWIP != eUnit ) in CalcToUnit()
177 switch ( eUnit ) in CalcToUnit()
258 FieldUnit MapToFieldUnit( const SfxMapUnit eUnit ) in MapToFieldUnit() argument
260 switch ( eUnit ) in MapToFieldUnit()
295 long ConvertValueToMap( long nVal, SfxMapUnit eUnit ) in ConvertValueToMap() argument
299 switch ( eUnit ) in ConvertValueToMap()
320 long ConvertValueToUnit( long nVal, SfxMapUnit eUnit ) in ConvertValueToUnit() argument
324 switch ( eUnit ) in ConvertValueToUnit()
346 long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFaktor ) in CalcToPoint() argument
348 DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP || in CalcToPoint()
349 eUnit == SFX_MAPUNIT_100TH_MM || in CalcToPoint()
350 eUnit == SFX_MAPUNIT_10TH_MM || in CalcToPoint()
351 eUnit == SFX_MAPUNIT_MM || in CalcToPoint()
352 eUnit == SFX_MAPUNIT_CM, "this unit is not implemented" ); in CalcToPoint()
356 if ( SFX_MAPUNIT_TWIP == eUnit ) in CalcToPoint()
361 switch ( eUnit ) in CalcToPoint()
371 if ( SFX_MAPUNIT_TWIP != eUnit ) in CalcToPoint()