Lines Matching refs:nWidth

3154     long nWidth = rSalLayout.GetTextWidth();  in ImplGetTextWidth()  local
3155 nWidth /= rSalLayout.GetUnitsPerPixel(); in ImplGetTextWidth()
3156 return nWidth; in ImplGetTextWidth()
3162 long nDistX, long nDistY, long nWidth, long nHeight ) in ImplDrawTextRect() argument
3178 nTemp = nWidth; in ImplDrawTextRect()
3179 nWidth = nHeight; in ImplDrawTextRect()
3187 nX -= nWidth; in ImplDrawTextRect()
3195 nTemp = nWidth; in ImplDrawTextRect()
3196 nWidth = nHeight; in ImplDrawTextRect()
3198 nX -= nWidth; in ImplDrawTextRect()
3206 Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) ); in ImplDrawTextRect()
3216 mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); in ImplDrawTextRect()
3223 const long nWidth = rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(); in ImplDrawTextBackground() local
3237 nWidth, in ImplDrawTextBackground()
3249 long nWidth = rSalLayout.GetTextWidth(); in ImplGetTextBoundRect() local
3259 long nX2 = nX+nWidth; in ImplGetTextBoundRect()
3263 nWidth = nX2-nX; in ImplGetTextBoundRect()
3269 Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) ); in ImplGetTextBoundRect()
3276 return Rectangle( Point( nX, nY ), Size( nWidth, nHeight ) ); in ImplGetTextBoundRect()
3522 long nWidth, long nHeight, in ImplDrawWaveLine() argument
3538 long nEndX = nStartX+nWidth; in ImplDrawWaveLine()
3553 long nCount = nWidth; in ImplDrawWaveLine()
3585 while ( nWidth ) in ImplDrawWaveLine()
3591 nWidth--; in ImplDrawWaveLine()
3645 long nDistX, long nDistY, long nWidth, in ImplDrawWaveTextLine() argument
3692 ImplDrawWaveLine( nBaseX, nBaseY, nDistX, nLinePos, nWidth, nLineHeight, in ImplDrawWaveTextLine()
3695 ImplDrawWaveLine( nBaseX, nBaseY, nDistX, nLinePos, nWidth, nLineHeight, in ImplDrawWaveTextLine()
3701 ImplDrawWaveLine( nBaseX, nBaseY, nDistX, nLinePos, nWidth, nLineHeight, in ImplDrawWaveTextLine()
3709 long nDistX, long nDistY, long nWidth, in ImplDrawStraightTextLine() argument
3794 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos, nWidth, nLineHeight ); in ImplDrawStraightTextLine()
3797 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos, nWidth, nLineHeight ); in ImplDrawStraightTextLine()
3798 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos2, nWidth, nLineHeight ); in ImplDrawStraightTextLine()
3807 long nEnd = nLeft+nWidth; in ImplDrawStraightTextLine()
3854 long nEnd = nLeft+nWidth; in ImplDrawStraightTextLine()
3879 long nEnd = nLeft+nWidth; in ImplDrawStraightTextLine()
3910 long nEnd = nLeft+nWidth; in ImplDrawStraightTextLine()
3941 long nDistX, long nDistY, long nWidth, in ImplDrawStrikeoutLine() argument
3990 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos, nWidth, nLineHeight ); in ImplDrawStrikeoutLine()
3993 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos, nWidth, nLineHeight ); in ImplDrawStrikeoutLine()
3994 ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos2, nWidth, nLineHeight ); in ImplDrawStrikeoutLine()
4005 long nDistX, long nDistY, long nWidth, in ImplDrawStrikeoutChar() argument
4027 long nStrikeoutWidth = nWidth; in ImplDrawStrikeoutChar()
4042 nMaxWidth += nWidth + 1; in ImplDrawStrikeoutChar()
4088 long nDistX, long nWidth, in ImplDrawTextLine() argument
4094 if ( !nWidth ) in ImplDrawTextLine()
4107 long nXAdd = nWidth - nDistX; in ImplDrawTextLine()
4124 … ImplDrawWaveTextLine( nX, nY, nDistX, 0, nWidth, eUnderline, aUnderlineColor, bUnderlineAbove ); in ImplDrawTextLine()
4132 ImplDrawWaveTextLine( nX, nY, nDistX, 0, nWidth, eOverline, aOverlineColor, sal_True ); in ImplDrawTextLine()
4139 ImplDrawStrikeoutChar( nX, nY, nDistX, 0, nWidth, eStrikeout, aStrikeoutColor ); in ImplDrawTextLine()
4144 …ImplDrawStraightTextLine( nX, nY, nDistX, 0, nWidth, eUnderline, aUnderlineColor, bUnderlineAbove … in ImplDrawTextLine()
4147 ImplDrawStraightTextLine( nX, nY, nDistX, 0, nWidth, eOverline, aOverlineColor, sal_True ); in ImplDrawTextLine()
4150 ImplDrawStrikeoutLine( nX, nY, nDistX, 0, nWidth, eStrikeout, aStrikeoutColor ); in ImplDrawTextLine()
4164 sal_Int32 nDist = 0, nWidth = 0, nAdvance=0; in ImplDrawTextLines() local
4175 if( !nWidth ) in ImplDrawTextLines()
4188 nWidth += nAdvance; in ImplDrawTextLines()
4190 else if( nWidth > 0 ) in ImplDrawTextLines()
4193 ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), nDist, nWidth, in ImplDrawTextLines()
4195 nWidth = 0; in ImplDrawTextLines()
4200 if( nWidth > 0 ) in ImplDrawTextLines()
4202 ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), nDist, nWidth, in ImplDrawTextLines()
4209 int nWidth = rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(); in ImplDrawTextLines() local
4210 ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), 0, nWidth, in ImplDrawTextLines()
4217 void OutputDevice::ImplDrawMnemonicLine( long nX, long nY, long nWidth ) in ImplDrawMnemonicLine() argument
4226 nX = nBaseX - nWidth - (nX - nBaseX - 1); in ImplDrawMnemonicLine()
4229 …ImplDrawTextLine( nX, nY, 0, nWidth, STRIKEOUT_NONE, UNDERLINE_SINGLE, UNDERLINE_NONE, sal_False ); in ImplDrawMnemonicLine()
4394 long nWidth = 0; in ImplDrawEmphasisMark() local
4398 nX = nBaseX - nWidth - (nX - nBaseX - 1); in ImplDrawEmphasisMark()
4790 long nWidth, const XubString& rStr, in ImplGetTextLines() argument
4793 DBG_ASSERTWARNING( nWidth >= 0, "ImplGetTextLines: nWidth <= 0!" ); in ImplGetTextLines()
4795 if ( nWidth <= 0 ) in ImplGetTextLines()
4796 nWidth = 1; in ImplGetTextLines()
4800 if ( rStr.Len() && (nWidth > 0) ) in ImplGetTextLines()
4830 if ( ( nLineWidth > nWidth ) && ( nStyle & TEXT_DRAW_WORDBREAK ) ) in ImplGetTextLines()
4838 … xub_StrLen nSoftBreak = _rLayout.GetTextBreak( rStr, nWidth, nPos, nBreakPos - nPos ); in ImplGetTextLines()
4958 } while( nW > nWidth ); in ImplGetTextLines()
5438 void OutputDevice::DrawTextLine( const Point& rPos, long nWidth, in DrawTextLine() argument
5448 …mpMetaFile->AddAction( new MetaTextLineAction( rPos, nWidth, eStrikeout, eUnderline, eOverline ) ); in DrawTextLine()
5475 nWidth = ImplLogicWidthToDevicePixel( nWidth ); in DrawTextLine()
5477 …ImplDrawTextLine( aPos.X(), aPos.X(), 0, nWidth, eStrikeout, eUnderline, eOverline, bUnderlineAbov… in DrawTextLine()
5480 … mpAlphaVDev->DrawTextLine( rPos, nWidth, eStrikeout, eUnderline, eOverline, bUnderlineAbove ); in DrawTextLine()
5653 long nWidth = GetTextArray( rStr, NULL, nIndex, nLen ); in GetTextWidth() local
5654 return nWidth; in GetTextWidth()
5729 long nWidth = pSalLayout->FillDXArray( pDXAry ); in GetTextArray() local
5744 nWidth = ImplDevicePixelToLogicWidth( nWidth ); in GetTextArray()
5752 nWidth /= nWidthFactor; in GetTextArray()
5755 return nWidth; in GetTextArray()
5781 long nWidth = pSalLayout->GetTextWidth(); in GetCaretPositions() local
5802 pCaretXArray[i] = nWidth - pCaretXArray[i] - 1; in GetCaretPositions()
5829 void OutputDevice::DrawStretchText( const Point& rStartPt, sal_uLong nWidth, in DrawStretchText() argument
5837 mpMetaFile->AddAction( new MetaStretchTextAction( rStartPt, nWidth, rStr, nIndex, nLen ) ); in DrawStretchText()
5842 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen, rStartPt, nWidth, NULL, true ); in DrawStretchText()
5850 mpAlphaVDev->DrawStretchText( rStartPt, nWidth, rStr, nIndex, nLen ); in DrawStretchText()
6392 long nWidth = rRect.GetWidth(); in ImplDrawText() local
6395 if ( ((nWidth <= 0) || (nHeight <= 0)) && (nStyle & TEXT_DRAW_CLIP) ) in ImplDrawText()
6424 nMaxTextWidth = ImplGetTextLines( aMultiLineInfo, nWidth, aStr, nStyle, _rLayout ); in ImplDrawText()
6446 … aLastLine = ImplGetEllipsisString( rTargetDevice, aLastLine, nWidth, nStyle, _rLayout ); in ImplDrawText()
6453 if ( nMaxTextWidth <= nWidth ) in ImplDrawText()
6485 aPos.X() += nWidth-pLineInfo->GetWidth(); in ImplDrawText()
6487 aPos.X() += (nWidth-pLineInfo->GetWidth())/2; in ImplDrawText()
6532 if ( nTextWidth > nWidth ) in ImplDrawText()
6536 aStr = ImplGetEllipsisString( rTargetDevice, aStr, nWidth, nStyle, _rLayout ); in ImplDrawText()
6550 aPos.X() += nWidth-nTextWidth; in ImplDrawText()
6552 aPos.X() += (nWidth-nTextWidth)/2; in ImplDrawText()
6709 long nWidth = rRect.GetWidth(); in GetTextRect() local
6726 …ImplGetTextLines( aMultiLineInfo, nWidth, aStr, nStyle, _pTextLayout ? *_pTextLayout : aDefaultLay… in GetTextRect()
6745 nMaxWidth = nWidth; in GetTextRect()
6782 if ( (nMaxWidth > nWidth) && (nStyle & TEXT_DRAW_ELLIPSIS) ) in GetTextRect()
6786 nMaxWidth = nWidth; in GetTextRect()
6794 aRect.Left() += (nWidth-nMaxWidth)/2; in GetTextRect()
7608 long nWidth = pSalLayout->GetTextWidth(); in GetTextBoundRect() local
7610 Point aOffset( nWidth/2, 8 ); in GetTextBoundRect()
7611 Size aOutSize( nWidth + 2*aOffset.X(), nHeight + 2*aOffset.Y() ); in GetTextBoundRect()
7612 if( !nWidth || !aVDev.SetOutputSizePixel( aOutSize ) ) in GetTextBoundRect()
7825 long nWidth = pSalLayout->GetTextWidth(); in GetTextOutlines() local
7830 if( !nWidth || !nHeight ) in GetTextOutlines()
7832 double fScaleX = static_cast< double >(nOrgWidth) / nWidth; in GetTextOutlines()