Lines Matching refs:pLine
319 TextLine* pLine = pTEParaPortion->GetLines()[nL]; in GetTextLines() local
320 …aText += pTEParaPortion->GetNode()->GetText().Copy( pLine->GetStart(), pLine->GetEnd() - pLine->Ge… in GetTextLines()
1000 TextLine* pLine = 0; in GetEditCursor() local
1006 pLine = pTmpLine; in GetEditCursor()
1013 if ( !pLine ) in GetEditCursor()
1018 pLine = pPortion->GetLines().GetObject( pPortion->GetLines().Count()-1 ); in GetEditCursor()
1020 nCurIndex = nCurIndex - pLine->GetLen(); in GetEditCursor()
1030 long nX = ImpGetXPos( rPaM.GetPara(), pLine, rPaM.GetIndex(), bPreferPortionStart ); in GetEditCursor()
1035 long TextEngine::ImpGetXPos( sal_uLong nPara, TextLine* pLine, sal_uInt16 nIndex, sal_Bool bPreferP… in ImpGetXPos() argument
1037 …DBG_ASSERT( ( nIndex >= pLine->GetStart() ) && ( nIndex <= pLine->GetEnd() ) , "ImpGetXPos muss ri… in ImpGetXPos()
1041 if ( nIndex == pLine->GetStart() ) in ImpGetXPos()
1043 else if ( nIndex == pLine->GetEnd() ) in ImpGetXPos()
1051 …DBG_ASSERT( ( nTextPortion >= pLine->GetStartPortion() ) && ( nTextPortion <= pLine->GetEndPortion… in ImpGetXPos()
1055 long nX = ImpGetPortionXOffset( nPara, pLine, nTextPortion ); in ImpGetXPos()
1080 nX = ImpGetXPos( nPara, pLine, nIndex, sal_True ); in ImpGetXPos()
1088 DBG_ASSERT( nIndex != pLine->GetStart(), "Strange behavior in new ImpGetXPos()" ); in ImpGetXPos()
1181 TextLine* pLine = 0; in ImpFindIndex() local
1189 pLine = pTmpLine; in ImpFindIndex()
1193 DBG_ASSERT( pLine, "ImpFindIndex: pLine ?" ); in ImpFindIndex()
1197 if ( nCurIndex && ( nCurIndex == pLine->GetEnd() ) && in ImpFindIndex()
1198 ( pLine != pPortion->GetLines().GetObject( pPortion->GetLines().Count()-1) ) ) in ImpFindIndex()
1211 TextLine* pLine = pPortion->GetLines().GetObject( nLine ); in GetCharPos() local
1213 sal_uInt16 nCurIndex = pLine->GetStart(); in GetCharPos()
1215 long nTmpX = pLine->GetStartX(); in GetCharPos()
1219 for ( sal_uInt16 i = pLine->GetStartPortion(); i <= pLine->GetEndPortion(); i++ ) in GetCharPos()
1274 TextLine* pLine = pPortion->GetLines().GetObject( --nLine ); in CalcTextWidth() local
1275 for ( sal_uInt16 nTP = pLine->GetStartPortion(); nTP <= pLine->GetEndPortion(); nTP++ ) in CalcTextWidth()
1363 TextLine* pLine = pPPortion->GetLines().GetObject( nLine ); in GetLineLen() local
1364 return pLine->GetLen(); in GetLineLen()
1781 void TextEngine::ImpBreakLine( sal_uLong nPara, TextLine* pLine, TETextPortion*, sal_uInt16 nPortio… in ImpBreakLine() argument
1804 …i18n::LineBreakResults aLBR = xBI->getLineBreak( pNode->GetText(), nMaxBreakPos, aDefLocale, pLine… in ImpBreakLine()
1806 if ( nBreakPos <= pLine->GetStart() ) in ImpBreakLine()
1809 if ( nBreakPos <= pLine->GetStart() ) in ImpBreakLine()
1810 nBreakPos = pLine->GetStart() + 1; // Sonst Endlosschleife! in ImpBreakLine()
1815 pLine->SetEnd( nBreakPos ); in ImpBreakLine()
1818 sal_Bool bBlankSeparator = ( ( nBreakPos >= pLine->GetStart() ) && in ImpBreakLine()
1825 DBG_ASSERT( nBreakPos > pLine->GetStart(), "SplitTextPortion am Anfang der Zeile?" ); in ImpBreakLine()
1828 pLine->SetEndPortion( nEndPortion ); in ImpBreakLine()
2107 TextLine* pLine = pPortion->GetLines().GetObject(nLine); in ImpPaint() local
2108 Point aTmpPos( rStartPos.X() + pLine->GetStartX(), nY ); in ImpPaint()
2112 ( TextPaM( nPara, pLine->GetStart() ) < pPaintRange->GetEnd() ) && in ImpPaint()
2113 ( TextPaM( nPara, pLine->GetEnd() ) > pPaintRange->GetStart() ) ) ) ) in ImpPaint()
2118 nIndex = pLine->GetStart(); in ImpPaint()
2119 for ( sal_uInt16 y = pLine->GetStartPortion(); y <= pLine->GetEndPortion(); y++ ) in ImpPaint()
2128 … aTmpPos.X() = rStartPos.X() + ImpGetOutputOffset( nPara, pLine, nIndex, nIndex ); in ImpPaint()
2182 … aPos.X() = rStartPos.X() + ImpGetOutputOffset( nPara, pLine, nTmpIndex, nTmpIndex+nL ); in ImpPaint()
2196 aPos.X() = rStartPos.X() + ImpGetOutputOffset( nPara, pLine, nTmpIndex, nTmpIndex+nL ); in ImpPaint()
2207 … aPos.X() = rStartPos.X() + ImpGetOutputOffset( nPara, pLine, nTmpIndex, nTmpIndex+nL ); in ImpPaint()
2215 … aPos.X() = rStartPos.X() + ImpGetOutputOffset( nPara, pLine, nTmpIndex, nEnd ); in ImpPaint()
2365 TextLine* pLine = pTEParaPortion->GetLines().GetObject( nL ); in CreateLines() local
2366 if ( pLine->GetEnd() > nInvalidStart ) in CreateLines()
2371 pLine->SetValid(); in CreateLines()
2378 TextLine* pLine = pTEParaPortion->GetLines().GetObject( nLine ); in CreateLines() local
2386 sal_uInt16 nIndex = pLine->GetStart(); in CreateLines()
2387 TextLine aSaveLine( *pLine ); in CreateLines()
2401 sal_uInt16 nTmpPortion = pLine->GetStartPortion(); in CreateLines()
2426 if ( ( nTmpWidth >= nXWidth ) && ( nTmpPortion == pLine->GetStartPortion() ) ) in CreateLines()
2474 pLine->SetEnd( nPortionEnd ); in CreateLines()
2476 pLine->SetEndPortion( (sal_uInt16)pTEParaPortion->GetTextPortions().Count() - 1 ); in CreateLines()
2481 pLine->SetEnd( nPortionStart ); in CreateLines()
2482 pLine->SetEndPortion( nTmpPortion-1 ); in CreateLines()
2486 pLine->SetEnd( nPortionStart+1 ); in CreateLines()
2487 pLine->SetEndPortion( nTmpPortion-1 ); in CreateLines()
2494 ImpBreakLine( nPara, pLine, pPortion, nPortionStart, nRemainingWidth ); in CreateLines()
2501 for ( sal_uInt16 nTP = pLine->GetStartPortion(); nTP <= pLine->GetEndPortion(); nTP++ ) in CreateLines()
2510 pLine->SetStartX( (sal_uInt16)(nSpace / 2) ); in CreateLines()
2512 pLine->SetStartX( (sal_uInt16)nSpace ); in CreateLines()
2517 pLine->SetStartX( mpDoc->GetLeftMargin() ); in CreateLines()
2523 pLine->SetInvalid(); in CreateLines()
2532 if ( pLine->GetEnd() < nInvalidStart ) in CreateLines()
2534 if ( *pLine == aSaveLine ) in CreateLines()
2536 pLine->SetValid(); in CreateLines()
2541 sal_uInt16 nStart = pLine->GetStart(); in CreateLines()
2542 sal_uInt16 nEnd = pLine->GetEnd(); in CreateLines()
2549 pLine->SetValid(); in CreateLines()
2574 nIndex = pLine->GetEnd(); // naechste Zeile Start = letzte Zeile Ende in CreateLines()
2577 sal_uInt16 nEndPortion = pLine->GetEndPortion(); in CreateLines()
2580 pLine = 0; in CreateLines()
2582 pLine = pTEParaPortion->GetLines().GetObject( ++nLine ); in CreateLines()
2583 if ( pLine && ( nIndex >= pNode->GetText().Len() ) ) in CreateLines()
2588 if ( !pLine && ( nIndex < pNode->GetText().Len() ) ) in CreateLines()
2590 pLine = new TextLine; in CreateLines()
2591 pTEParaPortion->GetLines().Insert( pLine, ++nLine ); in CreateLines()
2593 if ( pLine ) in CreateLines()
2595 aSaveLine = *pLine; in CreateLines()
2596 pLine->SetStart( nIndex ); in CreateLines()
2597 pLine->SetEnd( nIndex ); in CreateLines()
2598 pLine->SetStartPortion( nEndPortion+1 ); in CreateLines()
2599 pLine->SetEndPortion( nEndPortion+1 ); in CreateLines()
3155 long TextEngine::ImpGetPortionXOffset( sal_uLong nPara, TextLine* pLine, sal_uInt16 nTextPortion ) in ImpGetPortionXOffset() argument
3157 long nX = pLine->GetStartX(); in ImpGetPortionXOffset()
3161 for ( sal_uInt16 i = pLine->GetStartPortion(); i < nTextPortion; i++ ) in ImpGetPortionXOffset()
3174 while ( nTmpPortion <= pLine->GetEndPortion() ) in ImpGetPortionXOffset()
3185 while ( nTmpPortion > pLine->GetStartPortion() ) in ImpGetPortionXOffset()
3199 while ( nTmpPortion <= pLine->GetEndPortion() ) in ImpGetPortionXOffset()
3210 while ( nTmpPortion > pLine->GetStartPortion() ) in ImpGetPortionXOffset()
3259 long TextEngine::ImpGetOutputOffset( sal_uLong nPara, TextLine* pLine, sal_uInt16 nIndex, sal_uInt1… in ImpGetOutputOffset() argument
3274 nX = ImpGetPortionXOffset( nPara, pLine, nPortion ); in ImpGetOutputOffset()
3282 nX = ImpGetXPos( nPara, pLine, nIndex, nIndex == nPortionStart ); in ImpGetOutputOffset()
3285 long nX2 = ImpGetXPos( nPara, pLine, nIndex2, sal_False ); in ImpGetOutputOffset()