Lines Matching refs:nIndex

400 void ImplDirectFontSubstitution::RemoveFontSubstitute( int nIndex )  in RemoveFontSubstitute()  argument
403 for( int nCount = 0; (it != maFontSubstList.end()) && (nCount++ != nIndex); ++it ) ; in RemoveFontSubstitute()
433 bool ImplDirectFontSubstitution::GetFontSubstitute( int nIndex, in GetFontSubstitute() argument
437 for( int nCount = 0; (it != maFontSubstList.end()) && (nCount++ != nIndex); ++it ) ; in GetFontSubstitute()
594 xub_StrLen nIndex = 0; in GetDefaultFont() local
597 aSearchName = GetNextFontToken( aSearch, nIndex ); in GetDefaultFont()
607 while ( nIndex != STRING_NOTFOUND ); in GetDefaultFont()
614 xub_StrLen nIndex = 0; in GetDefaultFont() local
621 aFont.SetName( aSearch.GetToken( 0, ';', nIndex ) ); in GetDefaultFont()
1588 xub_StrLen nIndex = 0; in ImplFindByAliasName() local
1591 aTempName = GetNextFontToken( pData->maMapNames, nIndex ); in ImplFindByAliasName()
1596 while ( nIndex != STRING_NOTFOUND ); in ImplFindByAliasName()
5564 xub_StrLen nIndex, xub_StrLen nLen, in DrawText() argument
5583 mpMetaFile->AddAction( new MetaTextAction( rStartPt, rStr, nIndex, nLen ) ); in DrawText()
5597 GetGlyphBoundRects( rStartPt, rStr, nIndex, nLen, nIndex, aTmp ); in DrawText()
5600 for( MetricVector::const_iterator it = aTmp.begin(); it != aTmp.end(); ++it, nIndex++ ) in DrawText()
5606 else if( rStr.GetChar( nIndex ) == ' ' && bInserted ) in DrawText()
5618 pDisplayText->Append( rStr.GetChar( nIndex ) ); in DrawText()
5625 GetGlyphBoundRects( rStartPt, rStr, nIndex, nLen, nIndex, *pVector ); in DrawText()
5627 pDisplayText->Append( rStr.Copy( nIndex, nLen ) ); in DrawText()
5634 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen, rStartPt, 0, NULL, true ); in DrawText()
5642 mpAlphaVDev->DrawText( rStartPt, rStr, nIndex, nLen, pVector, pDisplayText ); in DrawText()
5648 xub_StrLen nIndex, xub_StrLen nLen ) const in GetTextWidth() argument
5653 long nWidth = GetTextArray( rStr, NULL, nIndex, nLen ); in GetTextWidth()
5683 xub_StrLen nIndex, xub_StrLen nLen ) in DrawTextArray() argument
5689 mpMetaFile->AddAction( new MetaTextArrayAction( rStartPt, rStr, pDXAry, nIndex, nLen ) ); in DrawTextArray()
5700 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen, rStartPt, 0, pDXAry, true ); in DrawTextArray()
5708 mpAlphaVDev->DrawTextArray( rStartPt, rStr, pDXAry, nIndex, nLen ); in DrawTextArray()
5714 xub_StrLen nIndex, xub_StrLen nLen ) const in GetTextArray() argument
5719 if( nIndex >= rStr.Len() ) in GetTextArray()
5721 if( (sal_uLong)nIndex+nLen >= rStr.Len() ) in GetTextArray()
5722 nLen = rStr.Len() - nIndex; in GetTextArray()
5725 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen ); in GetTextArray()
5761 xub_StrLen nIndex, xub_StrLen nLen, in GetCaretPositions() argument
5768 if( nIndex >= rStr.Len() ) in GetCaretPositions()
5770 if( (sal_uLong)nIndex+nLen >= rStr.Len() ) in GetCaretPositions()
5771 nLen = rStr.Len() - nIndex; in GetCaretPositions()
5774 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen, in GetCaretPositions()
5831 xub_StrLen nIndex, xub_StrLen nLen ) 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()
6233 xub_StrLen nIndex, xub_StrLen nLen ) const in GetTextIsRTL() argument
6236 ImplLayoutArgs aArgs = ImplPrepareLayoutArgs( aStr, nIndex, nLen, 0, NULL ); in GetTextIsRTL()
6240 return (nCharPos != nIndex) ? sal_True : sal_False; in GetTextIsRTL()
6246 xub_StrLen nIndex, xub_StrLen nLen, in GetTextBreak() argument
6252 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen ); in GetTextBreak()
6282 xub_StrLen nIndex, xub_StrLen nLen, in GetTextBreak() argument
6290 SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen ); in GetTextBreak()
6488 xub_StrLen nIndex = pLineInfo->GetIndex(); in ImplDrawText() local
6490 _rLayout.DrawText( aPos, aStr, nIndex, nLineLen, pVector, pDisplayText ); in ImplDrawText()
6493 if ( (nMnemonicPos >= nIndex) && (nMnemonicPos < nIndex+nLineLen) ) in ImplDrawText()
6501 nIndex, nLineLen ); in ImplDrawText()
6502 long lc_x1 = pCaretXArray[2*(nMnemonicPos - nIndex)]; in ImplDrawText()
6503 long lc_x2 = pCaretXArray[2*(nMnemonicPos - nIndex)+1]; in ImplDrawText()
6845 xub_StrLen nIndex = _rLayout.GetTextBreak( aStr, nMaxWidth, 0, aStr.Len() ); in ImplGetEllipsisString() local
6848 if ( nIndex != STRING_LEN ) in ImplGetEllipsisString()
6865 aStr.Erase( nIndex ); in ImplGetEllipsisString()
6866 if ( nIndex > 1 ) in ImplGetEllipsisString()
6871 if ( (nIndex > 1) || (nIndex == aStr.Len()) ) in ImplGetEllipsisString()
6872 nIndex--; in ImplGetEllipsisString()
6873 aStr.Erase( nIndex, 1 ); in ImplGetEllipsisString()
6884 osl_abbreviateSystemPath( aPath.pData, &aAbbreviatedPath.pData, nIndex, NULL ); in ImplGetEllipsisString()
6972 xub_StrLen nIndex, xub_StrLen nLen, in DrawCtrlText() argument
6978 if ( !IsDeviceOutputNecessary() || (nIndex >= rStr.Len()) ) in DrawCtrlText()
6990 if( nIndex >= rStr.Len() ) in DrawCtrlText()
6992 if( (sal_uLong)nIndex+nLen >= rStr.Len() ) in DrawCtrlText()
6993 nLen = rStr.Len() - nIndex; in DrawCtrlText()
7006 if( nMnemonicPos < nIndex ) in DrawCtrlText()
7007 --nIndex; in DrawCtrlText()
7010 if( nMnemonicPos < (nIndex+nLen) ) in DrawCtrlText()
7012 … DBG_ASSERT( nMnemonicPos < (nIndex+nLen), "Mnemonic underline marker after last character" ); in DrawCtrlText()
7027 /*sal_Bool bRet =*/ GetCaretPositions( aStr, pCaretXArray, nIndex, nLen ); in DrawCtrlText()
7028 long lc_x1 = pCaretXArray[ 2*(nMnemonicPos - nIndex) ]; in DrawCtrlText()
7029 long lc_x2 = pCaretXArray[ 2*(nMnemonicPos - nIndex)+1 ]; in DrawCtrlText()
7078 DrawText( rPos, aStr, nIndex, nLen, pVector, pDisplayText ); in DrawCtrlText()
7090 DrawText( rPos, aStr, nIndex, nLen, pVector, pDisplayText ); in DrawCtrlText()
7099 mpAlphaVDev->DrawCtrlText( rPos, rStr, nIndex, nLen, nStyle, pVector, pDisplayText ); in DrawCtrlText()
7105 xub_StrLen nIndex, xub_StrLen nLen, in GetCtrlTextWidth() argument
7117 if ( nMnemonicPos < nIndex ) in GetCtrlTextWidth()
7118 nIndex--; in GetCtrlTextWidth()
7120 (nMnemonicPos >= nIndex) && (nMnemonicPos < (sal_uLong)(nIndex+nLen)) ) in GetCtrlTextWidth()
7123 return GetTextWidth( aStr, nIndex, nLen ); in GetCtrlTextWidth()
7126 return GetTextWidth( rStr, nIndex, nLen ); in GetCtrlTextWidth()
7399 …SysTextLayoutData(const Point& rStartPt, const XubString& rStr, xub_StrLen nIndex, xub_StrLen nLen, in GetSysTextLayoutData() argument
7411 … mpMetaFile->AddAction( new MetaTextArrayAction( rStartPt, rStr, pDXAry, nIndex, nLen ) ); in GetSysTextLayoutData()
7413 mpMetaFile->AddAction( new MetaTextAction( rStartPt, rStr, nIndex, nLen ) ); in GetSysTextLayoutData()
7418 SalLayout* rLayout = ImplLayout( rStr, nIndex, nLen, rStartPt, 0, pDXAry, true ); in GetSysTextLayoutData()
7498 int nIndex, int nLen, int nBase, MetricVector& rVector ) in GetGlyphBoundRects() argument
7506 nLen = rStr.Len() - nIndex; in GetGlyphBoundRects()
7511 …t, rStr, sal::static_int_cast<xub_StrLen>(nBase), sal::static_int_cast<xub_StrLen>(nIndex+i), 1 ) ) in GetGlyphBoundRects()
7523 const String& rStr, xub_StrLen nBase, xub_StrLen nIndex, xub_StrLen nLen, in GetTextBoundRect() argument
7536 if( nBase != nIndex ) in GetTextBoundRect()
7538 xub_StrLen nStart = Min( nBase, nIndex ); in GetTextBoundRect()
7539 xub_StrLen nOfsLen = Max( nBase, nIndex ) - nStart; in GetTextBoundRect()
7547 if( nBase < nIndex) in GetTextBoundRect()
7552 pSalLayout = ImplLayout( rStr, nIndex, nLen, aPoint, nLayoutWidth, pDXAry ); in GetTextBoundRect()
7602 pSalLayout = aVDev.ImplLayout( rStr, nIndex, nLen, aPoint, nLayoutWidth, pDXAry ); in GetTextBoundRect()
7701 const String& rStr, xub_StrLen nBase, xub_StrLen nIndex, xub_StrLen nLen, in GetTextOutlines() argument
7715 nLen = rStr.Len() - nIndex; in GetTextOutlines()
7731 if( nBase != nIndex ) in GetTextOutlines()
7733 xub_StrLen nStart = Min( nBase, nIndex ); in GetTextOutlines()
7734 xub_StrLen nOfsLen = Max( nBase, nIndex ) - nStart; in GetTextOutlines()
7741 if( nBase > nIndex) in GetTextOutlines()
7746 pSalLayout = ImplLayout( rStr, nIndex, nLen, Point(0,0), nTWidth, pDXArray ); in GetTextOutlines()
7797 pSalLayout = ImplLayout( rStr, nIndex, nLen, Point(0,0), nTWidth, pDXArray ); in GetTextOutlines()
7822 pSalLayout = aVDev.ImplLayout( rStr, nIndex, nLen, Point(0,0), nTWidth, pDXArray ); in GetTextOutlines()
7838 if( nBase != nIndex ) in GetTextOutlines()
7840 xub_StrLen nStart = ((nBase < nIndex) ? nBase : nIndex); in GetTextOutlines()
7841 xub_StrLen nLength = ((nBase > nIndex) ? nBase : nIndex) - nStart; in GetTextOutlines()
7847 if( nBase > nIndex) in GetTextOutlines()
7855 ImplLayoutArgs aLayoutArgs = ImplPrepareLayoutArgs( aStr, nIndex, nLen, 0, NULL ); in GetTextOutlines()
7930 const String& rStr, xub_StrLen nBase, xub_StrLen nIndex, in GetTextOutlines() argument
7937 if( !GetTextOutlines( aB2DPolyPolyVector, rStr, nBase, nIndex, nLen, in GetTextOutlines()
7953 const String& rStr, xub_StrLen nBase, xub_StrLen nIndex, xub_StrLen nLen, in GetTextOutline() argument
7960 if( !GetTextOutlines( aB2DPolyPolyVector, rStr, nBase, nIndex, nLen, in GetTextOutline()
8035 xub_StrLen nIndex, xub_StrLen nLen ) const in HasGlyphs() argument
8037 if( nIndex >= rStr.Len() ) in HasGlyphs()
8038 return nIndex; in HasGlyphs()
8039 xub_StrLen nEnd = nIndex + nLen; in HasGlyphs()
8040 if( (sal_uLong)nIndex+nLen > rStr.Len() ) in HasGlyphs()
8043 DBG_ASSERT( nIndex < nEnd, "StartPos >= EndPos?" ); in HasGlyphs()
8055 return nIndex; in HasGlyphs()
8058 for( pStr += nIndex; nIndex < nEnd; ++pStr, ++nIndex ) in HasGlyphs()
8060 return nIndex; in HasGlyphs()