Lines Matching refs:aMetrics

662 	ImplEntryMetrics aMetrics;  in ImplUpdateEntryMetrics()  local
663 aMetrics.bText = rEntry.maStr.Len() ? sal_True : sal_False; in ImplUpdateEntryMetrics()
664 aMetrics.bImage = !!rEntry.maImage; in ImplUpdateEntryMetrics()
665 aMetrics.nEntryWidth = 0; in ImplUpdateEntryMetrics()
666 aMetrics.nEntryHeight = 0; in ImplUpdateEntryMetrics()
667 aMetrics.nTextWidth = 0; in ImplUpdateEntryMetrics()
668 aMetrics.nImgWidth = 0; in ImplUpdateEntryMetrics()
669 aMetrics.nImgHeight = 0; in ImplUpdateEntryMetrics()
671 if ( aMetrics.bText ) in ImplUpdateEntryMetrics()
682 aMetrics.nTextWidth = aTextRect.GetWidth(); in ImplUpdateEntryMetrics()
683 if( aMetrics.nTextWidth > mnMaxTxtWidth ) in ImplUpdateEntryMetrics()
684 mnMaxTxtWidth = aMetrics.nTextWidth; in ImplUpdateEntryMetrics()
685 aMetrics.nEntryWidth = mnMaxTxtWidth; in ImplUpdateEntryMetrics()
686 aMetrics.nEntryHeight = aTextRect.GetHeight() + mnBorder; in ImplUpdateEntryMetrics()
691 aMetrics.nTextWidth = (sal_uInt16)GetTextWidth( rEntry.maStr ); in ImplUpdateEntryMetrics()
692 if( aMetrics.nTextWidth > mnMaxTxtWidth ) in ImplUpdateEntryMetrics()
693 mnMaxTxtWidth = aMetrics.nTextWidth; in ImplUpdateEntryMetrics()
694 aMetrics.nEntryWidth = mnMaxTxtWidth; in ImplUpdateEntryMetrics()
695 aMetrics.nEntryHeight = mnTextHeight + mnBorder; in ImplUpdateEntryMetrics()
698 if ( aMetrics.bImage ) in ImplUpdateEntryMetrics()
701 aMetrics.nImgWidth = (sal_uInt16) CalcZoom( aImgSz.Width() ); in ImplUpdateEntryMetrics()
702 aMetrics.nImgHeight = (sal_uInt16) CalcZoom( aImgSz.Height() ); in ImplUpdateEntryMetrics()
704 if( mnMaxImgWidth && ( aMetrics.nImgWidth != mnMaxImgWidth ) ) in ImplUpdateEntryMetrics()
706 else if ( mnMaxImgHeight && ( aMetrics.nImgHeight != mnMaxImgHeight ) ) in ImplUpdateEntryMetrics()
709 if( aMetrics.nImgWidth > mnMaxImgWidth ) in ImplUpdateEntryMetrics()
710 mnMaxImgWidth = aMetrics.nImgWidth; in ImplUpdateEntryMetrics()
711 if( aMetrics.nImgHeight > mnMaxImgHeight ) in ImplUpdateEntryMetrics()
712 mnMaxImgHeight = aMetrics.nImgHeight; in ImplUpdateEntryMetrics()
714 mnMaxImgTxtWidth = Max( mnMaxImgTxtWidth, aMetrics.nTextWidth ); in ImplUpdateEntryMetrics()
715 aMetrics.nEntryHeight = Max( aMetrics.nImgHeight, aMetrics.nEntryHeight ); in ImplUpdateEntryMetrics()
718 if ( IsUserDrawEnabled() || aMetrics.bImage ) in ImplUpdateEntryMetrics()
720 aMetrics.nEntryWidth = Max( aMetrics.nImgWidth, maUserItemSize.Width() ); in ImplUpdateEntryMetrics()
721 if ( aMetrics.bText ) in ImplUpdateEntryMetrics()
722 aMetrics.nEntryWidth += aMetrics.nTextWidth + IMG_TXT_DISTANCE; in ImplUpdateEntryMetrics()
723 aMetrics.nEntryHeight = Max( Max( mnMaxImgHeight, maUserItemSize.Height() ) + 2, in ImplUpdateEntryMetrics()
724 aMetrics.nEntryHeight ); in ImplUpdateEntryMetrics()
727 if ( !aMetrics.bText && !aMetrics.bImage && !IsUserDrawEnabled() ) in ImplUpdateEntryMetrics()
731 aMetrics.nEntryHeight = mnTextHeight + mnBorder; in ImplUpdateEntryMetrics()
734 if ( aMetrics.nEntryWidth > mnMaxWidth ) in ImplUpdateEntryMetrics()
735 mnMaxWidth = aMetrics.nEntryWidth; in ImplUpdateEntryMetrics()
736 if ( aMetrics.nEntryHeight > mnMaxHeight ) in ImplUpdateEntryMetrics()
737 mnMaxHeight = aMetrics.nEntryHeight; in ImplUpdateEntryMetrics()
739 rEntry.mnHeight = aMetrics.nEntryHeight; in ImplUpdateEntryMetrics()