Lines Matching refs:eUnit
45 inline long lcl_GetValue( MetricField& rMetric, FieldUnit eUnit ) in lcl_GetValue() argument
47 return static_cast<long>(rMetric.Denormalize( rMetric.GetValue( eUnit ))); in lcl_GetValue()
176 FieldUnit eUnit = MapToFieldUnit( rSet.GetPool()->GetMetric( nW )); in Reset() local
185 aLeftMF.SetValue( aLeftMF.Normalize( pCrop->GetLeft()), eUnit ); in Reset()
186 aRightMF.SetValue( aRightMF.Normalize( pCrop->GetRight()), eUnit ); in Reset()
187 aTopMF.SetValue( aTopMF.Normalize( pCrop->GetTop()), eUnit ); in Reset()
188 aBottomMF.SetValue( aBottomMF.Normalize( pCrop->GetBottom()), eUnit ); in Reset()
202 FieldUnit eUnit = MapToFieldUnit( rSet.GetPool()->GetMetric( nW )); in Reset() local
207 aHeightMF.SetMax( nTmp, eUnit ); in Reset()
209 aWidthMF.SetMax( nTmp, eUnit ); in Reset()
211 aHeightMF.SetMin( nTmp, eUnit ); in Reset()
212 aWidthMF.SetMin( nTmp, eUnit ); in Reset()
259 FieldUnit eUnit = MapToFieldUnit( rSet.GetPool()->GetMetric( nW )); in FillItemSet() local
275 aTmpSz.Width() = lcl_GetValue( aWidthMF, eUnit ); in FillItemSet()
277 aTmpSz.Height() = lcl_GetValue( aHeightMF, eUnit ); in FillItemSet()
294 FieldUnit eUnit = MapToFieldUnit( rSet.GetPool()->GetMetric( nW )); in FillItemSet() local
297 pNew->SetLeft( lcl_GetValue( aLeftMF, eUnit ) ); in FillItemSet()
298 pNew->SetRight( lcl_GetValue( aRightMF, eUnit ) ); in FillItemSet()
299 pNew->SetTop( lcl_GetValue( aTopMF, eUnit ) ); in FillItemSet()
300 pNew->SetBottom( lcl_GetValue( aBottomMF, eUnit ) ); in FillItemSet()
410 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in IMPL_LINK() local
415 long nLRBorders = lcl_GetValue(aLeftMF, eUnit) in IMPL_LINK()
416 +lcl_GetValue(aRightMF, eUnit); in IMPL_LINK()
419 eUnit); in IMPL_LINK()
423 long nULBorders = lcl_GetValue(aTopMF, eUnit) in IMPL_LINK()
424 +lcl_GetValue(aBottomMF, eUnit); in IMPL_LINK()
427 eUnit ); in IMPL_LINK()
441 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in IMPL_LINK() local
444 Size aSize( lcl_GetValue(aWidthMF, eUnit), in IMPL_LINK()
445 lcl_GetValue(aHeightMF, eUnit) ); in IMPL_LINK()
450 ( lcl_GetValue(aLeftMF, eUnit) + in IMPL_LINK()
451 lcl_GetValue(aRightMF, eUnit) ); in IMPL_LINK()
460 ( lcl_GetValue(aTopMF, eUnit) + in IMPL_LINK()
461 lcl_GetValue(aBottomMF, eUnit)); in IMPL_LINK()
479 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in IMPL_LINK() local
485 long nLeft = lcl_GetValue( aLeftMF, eUnit ); in IMPL_LINK()
486 long nRight = lcl_GetValue( aRightMF, eUnit ); in IMPL_LINK()
497 aLeftMF.SetValue( aLeftMF.Normalize( nLeft ), eUnit ); in IMPL_LINK()
505 aRightMF.SetValue( aRightMF.Normalize( nRight ), eUnit ); in IMPL_LINK()
518 long nTop = lcl_GetValue( aTopMF, eUnit ); in IMPL_LINK()
519 long nBottom = lcl_GetValue( aBottomMF, eUnit ); in IMPL_LINK()
530 aTopMF.SetValue( aWidthMF.Normalize( nTop ), eUnit ); in IMPL_LINK()
538 aBottomMF.SetValue( aWidthMF.Normalize( nBottom ), eUnit ); in IMPL_LINK()
564 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in IMPL_LINK() local
568 lcl_GetValue( aLeftMF, eUnit ) - in IMPL_LINK()
569 lcl_GetValue( aRightMF, eUnit ); in IMPL_LINK()
570 aWidthMF.SetValue( aWidthMF.Normalize( nWidth ), eUnit ); in IMPL_LINK()
572 lcl_GetValue( aTopMF, eUnit ) - in IMPL_LINK()
573 lcl_GetValue( aBottomMF, eUnit ); in IMPL_LINK()
574 aHeightMF.SetValue( aHeightMF.Normalize( nHeight ), eUnit ); in IMPL_LINK()
588 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in CalcZoom() local
591 long nWidth = lcl_GetValue( aWidthMF, eUnit ); in CalcZoom()
592 long nHeight = lcl_GetValue( aHeightMF, eUnit ); in CalcZoom()
593 long nLRBorders = lcl_GetValue( aLeftMF, eUnit ) + in CalcZoom()
594 lcl_GetValue( aRightMF, eUnit ); in CalcZoom()
595 long nULBorders = lcl_GetValue( aTopMF, eUnit ) + in CalcZoom()
596 lcl_GetValue( aBottomMF, eUnit ); in CalcZoom()
617 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in CalcMinMaxBorder() local
619 long nR = lcl_GetValue(aRightMF, eUnit ); in CalcMinMaxBorder()
622 aLeftMF.SetMax( aLeftMF.Normalize(nMin), eUnit ); in CalcMinMaxBorder()
624 long nL = lcl_GetValue(aLeftMF, eUnit ); in CalcMinMaxBorder()
626 aRightMF.SetMax( aRightMF.Normalize(nMin), eUnit ); in CalcMinMaxBorder()
633 long nUp = lcl_GetValue( aTopMF, eUnit ); in CalcMinMaxBorder()
636 aBottomMF.SetMax( aBottomMF.Normalize(nMin), eUnit ); in CalcMinMaxBorder()
638 long nLow = lcl_GetValue(aBottomMF, eUnit ); in CalcMinMaxBorder()
640 aTopMF.SetMax( aTopMF.Normalize(nMin), eUnit ); in CalcMinMaxBorder()
658 FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( in GraphicHasChanged() local
663 eUnit, aLeftMF.GetUnit()); in GraphicHasChanged()
666 long nR = lcl_GetValue( aRightMF, eUnit ); in GraphicHasChanged()
667 long nL = lcl_GetValue( aLeftMF, eUnit ); in GraphicHasChanged()
671 aRightMF.SetValue( aRightMF.Normalize( nVal ), eUnit ); in GraphicHasChanged()
672 aLeftMF.SetValue( aLeftMF.Normalize( nVal ), eUnit ); in GraphicHasChanged()
676 long nUp = lcl_GetValue(aTopMF, eUnit ); in GraphicHasChanged()
677 long nLow = lcl_GetValue(aBottomMF, eUnit ); in GraphicHasChanged()
681 aTopMF.SetValue( aTopMF.Normalize( nVal ), eUnit ); in GraphicHasChanged()
682 aBottomMF.SetValue( aBottomMF.Normalize( nVal ), eUnit ); in GraphicHasChanged()
691 eUnit, aLeftMF.GetUnit() ); in GraphicHasChanged()
703 aFld.SetValue( aFld.Normalize( aOrigSize.Width() ), eUnit ); in GraphicHasChanged()
705 aFld.SetValue( aFld.Normalize( aOrigSize.Height() ), eUnit ); in GraphicHasChanged()