Lines Matching refs:pParaPortion

393 		ParaPortion* pParaPortion = GetParaPortions().GetObject( nPara );  in FormatDoc()  local
394 if ( pParaPortion->MustRepaint() || ( pParaPortion->IsInvalid() && pParaPortion->IsVisible() ) ) in FormatDoc()
396 if ( pParaPortion->IsInvalid() ) in FormatDoc()
401 pParaPortion->GetTextPortions().Reset(); in FormatDoc()
402 pParaPortion->MarkSelectionInvalid( 0, pParaPortion->GetNode()->Len() ); in FormatDoc()
409 if ( ( pParaPortion->MustRepaint() && !pParaPortion->IsInvalid() ) in FormatDoc()
426 pParaPortion->SetMustRepaint( sal_False ); in FormatDoc()
434 Range aInvRange( GetInvalidYOffsets( pParaPortion ) ); in FormatDoc()
440 aInvalidRec.Bottom() = nY + pParaPortion->GetHeight(); in FormatDoc()
445 aInvalidRec.Bottom() = nY + pParaPortion->GetHeight(); in FormatDoc()
447 nY += pParaPortion->GetHeight(); in FormatDoc()
554 ParaPortion* pParaPortion = GetParaPortions().GetObject( nPara ); in CheckAutoPageSize() local
555 ContentNode* pNode = pParaPortion->GetNode(); in CheckAutoPageSize()
559 pParaPortion->MarkSelectionInvalid( 0, pNode->Len() ); in CheckAutoPageSize()
595 ParaPortion* pParaPortion = GetParaPortions().GetObject( nPara ); in CreateLines() local
598 DBG_ASSERT( pParaPortion->GetNode(), "Portion ohne Node in CreateLines" ); in CreateLines()
599 DBG_ASSERT( pParaPortion->IsVisible(), "Unsichtbare Absaetze nicht formatieren!" ); in CreateLines()
600 DBG_ASSERT( pParaPortion->IsInvalid(), "CreateLines: Portion nicht invalid!" ); in CreateLines()
602 sal_Bool bProcessingEmptyLine = ( pParaPortion->GetNode()->Len() == 0 ); in CreateLines()
603 sal_Bool bEmptyNodeWithPolygon = ( pParaPortion->GetNode()->Len() == 0 ) && GetTextRanger(); in CreateLines()
608 if ( ( pParaPortion->GetNode()->Len() == 0 ) && !GetTextRanger() ) in CreateLines()
611 if ( pParaPortion->GetTextPortions().Count() ) in CreateLines()
612 pParaPortion->GetTextPortions().Reset(); in CreateLines()
613 if ( pParaPortion->GetLines().Count() ) in CreateLines()
614 pParaPortion->GetLines().Reset(); in CreateLines()
615 CreateAndInsertEmptyLine( pParaPortion, nStartPosY ); in CreateLines()
616 return FinishCreateLines( pParaPortion ); in CreateLines()
626 if ( pParaPortion->GetLines().Count() == 0 ) in CreateLines()
629 pParaPortion->GetLines().Insert( pL, 0 ); in CreateLines()
635 ContentNode* const pNode = pParaPortion->GetNode(); in CreateLines()
651 const short nInvalidDiff = pParaPortion->GetInvalidDiff(); in CreateLines()
652 const sal_uInt16 nInvalidStart = pParaPortion->GetInvalidPosStart(); in CreateLines()
658 if ( ( pParaPortion->IsSimpleInvalid() ) && ( nInvalidDiff > 0 ) && in CreateLines()
663 else if ( ( pParaPortion->IsSimpleInvalid() ) && ( nInvalidDiff < 0 ) ) in CreateLines()
670 sal_uInt16 nPortions = pParaPortion->GetTextPortions().Count(); in CreateLines()
674 TextPortion* const pTP = pParaPortion->GetTextPortions()[ nTP ]; in CreateLines()
699 pParaPortion->GetTextPortions().Reset(); in CreateLines()
700 pParaPortion->GetTextPortions().Insert( pDummyPortion, 0 ); in CreateLines()
705 RecalcTextPortion( pParaPortion, nInvalidStart, nInvalidDiff ); in CreateLines()
709 CreateTextPortions( pParaPortion, nRealInvalidStart ); in CreateLines()
718 sal_uInt16 nLine = pParaPortion->GetLines().Count()-1; in CreateLines()
721 EditLine* pLine = pParaPortion->GetLines().GetObject( nL ); in CreateLines()
731 …if ( nLine && ( !pParaPortion->IsSimpleInvalid() || ( nInvalidEnd < pNode->Len() ) || ( nInvalidDi… in CreateLines()
734 EditLine* pLine = pParaPortion->GetLines().GetObject( nLine ); in CreateLines()
740 aBulletArea = GetEditEnginePtr()->GetBulletArea( GetParaPortions().GetPos( pParaPortion ) ); in CreateLines()
742 pParaPortion->SetBulletX( (sal_uInt16) GetXValue( aBulletArea.Right() ) ); in CreateLines()
744 pParaPortion->SetBulletX( 0 ); // Falls Bullet falsch eingestellt. in CreateLines()
781 if ( !nLine && ( pParaPortion->GetBulletX() > nStartX ) ) in CreateLines()
785 nStartX = pParaPortion->GetBulletX(); in CreateLines()
831 long nTextY = nStartPosY + GetEditCursor( pParaPortion, pLine->GetStart() ).Top(); in CreateLines()
906 …while ( ( nTmpWidth < nXWidth ) && !bEOL && ( nTmpPortion < pParaPortion->GetTextPortions().Count(… in CreateLines()
909 pPortion = pParaPortion->GetTextPortions().GetObject( nTmpPortion ); in CreateLines()
914 pParaPortion->GetTextPortions().Remove( nTmpPortion ); in CreateLines()
918 TextPortion* pPrev = pParaPortion->GetTextPortions().GetObject( nTmpPortion ); in CreateLines()
926 DBG_ASSERT( nTmpPortion < pParaPortion->GetTextPortions().Count(), "Keine Portion mehr da!" ); in CreateLines()
927 pPortion = pParaPortion->GetTextPortions().GetObject( nTmpPortion ); in CreateLines()
1057 …pPortion->GetSize() = aTmpFont.QuickGetTextSize( GetRefDevice(), *pParaPortion->GetNode(), nTmpPos… in CreateLines()
1107 TextPortion* pTP = pParaPortion->GetTextPortions().GetObject( n ); in CreateLines()
1122 String aText = GetSelected( EditSelection( EditPaM( pParaPortion->GetNode(), nTmpPos ), in CreateLines()
1123 EditPaM( pParaPortion->GetNode(), nTmpPos + pPortion->GetLen() ) ) ); in CreateLines()
1127 nW -= pParaPortion->GetTextPortions().GetObject( nTmpPortion )->GetSize().Width(); in CreateLines()
1128 …nW += aTmpFont.QuickGetTextSize( GetRefDevice(), *pParaPortion->GetNode(), nTmpPos, nDecPos, NULL … in CreateLines()
1142 TextPortion* pTabPortion = pParaPortion->GetTextPortions().GetObject( aCurrentTab.nTabPortion ); in CreateLines()
1180 sal_uInt16 nP = SplitTextPortion( pParaPortion, nTmpPos, pLine ); in CreateLines()
1181 TextPortion* p = pParaPortion->GetTextPortions().GetObject( nP ); in CreateLines()
1223 DBG_ASSERT( pParaPortion->GetTextPortions().Count(), "Keine TextPortions?" ); in CreateLines()
1224 pLine->SetEndPortion( (sal_uInt16)pParaPortion->GetTextPortions().Count() - 1 ); in CreateLines()
1254 ImpBreakLine( pParaPortion, pLine, pPortion, nPortionStart, in CreateLines()
1264 Size aTextSize = pLine->CalcTextSize( *pParaPortion ); in CreateLines()
1287 TextPortion* pTP = pParaPortion->GetTextPortions().GetObject( nP ); in CreateLines()
1393 ImplExpandCompressedPortions( pLine, pParaPortion, nRemainingWidth ); in CreateLines()
1394 aTextSize = pLine->CalcTextSize( *pParaPortion ); in CreateLines()
1403 TextPortion* pTP = pParaPortion->GetTextPortions().GetObject( pLine->GetEndPortion() ); in CreateLines()
1442 ImpAdjustBlocks( pParaPortion, pLine, nRemainingSpace ); in CreateLines()
1479 if ( pParaPortion->IsSimpleInvalid() /* && ( nInvalidDiff > 0 ) */ ) in CreateLines()
1508 pParaPortion->CorrectValuesBehindLastFormattedLine( nLine ); in CreateLines()
1523 pParaPortion->CorrectValuesBehindLastFormattedLine( nLine ); in CreateLines()
1539 if ( nLine < pParaPortion->GetLines().Count()-1 ) in CreateLines()
1540 pLine = pParaPortion->GetLines().GetObject( ++nLine ); in CreateLines()
1551 pParaPortion->GetLines().Insert( pLine, ++nLine ); in CreateLines()
1558pParaPortion->GetTextPortions().Insert( pDummyPortion, pParaPortion->GetTextPortions().Count() ); in CreateLines()
1560 pParaPortion->GetLines().Insert( pLine, ++nLine ); in CreateLines()
1577 pParaPortion->GetLines().DeleteFromLine( nDelFromLine ); in CreateLines()
1579 DBG_ASSERT( pParaPortion->GetLines().Count(), "Keine Zeile nach CreateLines!" ); in CreateLines()
1582 CreateAndInsertEmptyLine( pParaPortion, nStartPosY ); in CreateLines()
1586 sal_Bool bHeightChanged = FinishCreateLines( pParaPortion ); in CreateLines()
1596 void ImpEditEngine::CreateAndInsertEmptyLine( ParaPortion* pParaPortion, sal_uInt32 ) in CreateAndInsertEmptyLine() argument
1601 pTmpLine->SetStart( pParaPortion->GetNode()->Len() ); in CreateAndInsertEmptyLine()
1602 pTmpLine->SetEnd( pParaPortion->GetNode()->Len() ); in CreateAndInsertEmptyLine()
1603 pParaPortion->GetLines().Insert( pTmpLine, pParaPortion->GetLines().Count() ); in CreateAndInsertEmptyLine()
1605 sal_Bool bLineBreak = pParaPortion->GetNode()->Len() ? sal_True : sal_False; in CreateAndInsertEmptyLine()
1607 …sal_Int32 nSpaceBeforeAndMinLabelWidth = GetSpaceBeforeAndMinLabelWidth( pParaPortion->GetNode(), … in CreateAndInsertEmptyLine()
1608 const SvxLRSpaceItem& rLRItem = GetLRSpaceItem( pParaPortion->GetNode() ); in CreateAndInsertEmptyLine()
1609 …const SvxLineSpacingItem& rLSItem = (const SvxLineSpacingItem&)pParaPortion->GetNode()->GetContent… in CreateAndInsertEmptyLine()
1619 aBulletArea = GetEditEnginePtr()->GetBulletArea( GetParaPortions().GetPos( pParaPortion ) ); in CreateAndInsertEmptyLine()
1621 pParaPortion->SetBulletX( (sal_uInt16) GetXValue( aBulletArea.Right() ) ); in CreateAndInsertEmptyLine()
1623 pParaPortion->SetBulletX( 0 ); // Falls Bullet falsch eingestellt. in CreateAndInsertEmptyLine()
1624 if ( pParaPortion->GetBulletX() > nStartX ) in CreateAndInsertEmptyLine()
1627 if ( pParaPortion->GetBulletX() > nStartX ) in CreateAndInsertEmptyLine()
1628 nStartX = pParaPortion->GetBulletX(); in CreateAndInsertEmptyLine()
1633 SeekCursor( pParaPortion->GetNode(), bLineBreak ? pParaPortion->GetNode()->Len() : 0, aTmpFont ); in CreateAndInsertEmptyLine()
1640 pParaPortion->GetTextPortions().Insert( pDummyPortion, pParaPortion->GetTextPortions().Count() ); in CreateAndInsertEmptyLine()
1651 sal_uInt32 nPara = GetParaPortions().GetPos( pParaPortion ); in CreateAndInsertEmptyLine()
1684 sal_uInt32 nPara = GetParaPortions().GetPos( pParaPortion ); in CreateAndInsertEmptyLine()
1734 EditLine* pLastLine = pParaPortion->GetLines().GetObject( pParaPortion->GetLines().Count()-2 ); in CreateAndInsertEmptyLine()
1736 DBG_ASSERT( pLastLine->GetEnd() == pParaPortion->GetNode()->Len(), "Doch anders?" ); in CreateAndInsertEmptyLine()
1740 sal_uInt16 nPos = (sal_uInt16) pParaPortion->GetTextPortions().Count() - 1 ; in CreateAndInsertEmptyLine()
1746 sal_Bool ImpEditEngine::FinishCreateLines( ParaPortion* pParaPortion ) in FinishCreateLines() argument
1749 pParaPortion->SetValid(); in FinishCreateLines()
1750 long nOldHeight = pParaPortion->GetHeight(); in FinishCreateLines()
1754 CalcHeight( pParaPortion ); in FinishCreateLines()
1756 DBG_ASSERT( pParaPortion->GetTextPortions().Count(), "FinishCreateLines: Keine Text-Portion?" ); in FinishCreateLines()
1757 sal_Bool bRet = ( pParaPortion->GetHeight() != nOldHeight ); in FinishCreateLines()
1761 void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, TextPortion* pPortion… in ImpBreakLine() argument
1763 ContentNode* const pNode = pParaPortion->GetNode(); in ImpBreakLine()
1957 sal_uInt16 nEndPortion = SplitTextPortion( pParaPortion, nBreakPos, pLine ); in ImpBreakLine()
1971 TextPortion* pTP = pParaPortion->GetTextPortions().GetObject( nEndPortion ); in ImpBreakLine()
1986 TextPortion* pPrev = pParaPortion->GetTextPortions().GetObject( nEndPortion ); in ImpBreakLine()
2003 SeekCursor( pParaPortion->GetNode(), nBreakPos, aFont ); in ImpBreakLine()
2008 pParaPortion->GetTextPortions().Insert( pHyphPortion, ++nEndPortion ); in ImpBreakLine()
2013 void ImpEditEngine::ImpAdjustBlocks( ParaPortion* pParaPortion, EditLine* pLine, long nRemainingSpa… in ImpAdjustBlocks() argument
2022 ContentNode* pNode = pParaPortion->GetNode(); in ImpAdjustBlocks()
2054 nPortion = pParaPortion->GetTextPortions().FindPortion( nLastChar+1, nPortionStart ); in ImpAdjustBlocks()
2055 TextPortion* pLastPortion = pParaPortion->GetTextPortions()[ nPortion ]; in ImpAdjustBlocks()
2087 nPortion = pParaPortion->GetTextPortions().FindPortion( nChar, nPortionStart ); in ImpAdjustBlocks()
2088 TextPortion* pLastPortion = pParaPortion->GetTextPortions()[ nPortion ]; in ImpAdjustBlocks()
2297 void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_uInt16& rStart /* , sal_Bool… in CreateTextPortions() argument
2300 ContentNode* pNode = pParaPortion->GetNode(); in CreateTextPortions()
2319 if ( pParaPortion->aScriptInfos.empty() ) in CreateTextPortions()
2320 ((ImpEditEngine*)this)->InitScriptTypes( GetParaPortions().GetPos( pParaPortion ) ); in CreateTextPortions()
2322 const ScriptTypePosInfos& rTypes = pParaPortion->aScriptInfos; in CreateTextPortions()
2326 const WritingDirectionInfos& rWritingDirections = pParaPortion->aWritingDirectionInfos; in CreateTextPortions()
2350 for ( nP = 0; nP < pParaPortion->GetTextPortions().Count(); nP++ ) in CreateTextPortions()
2352 TextPortion* pTmpPortion = pParaPortion->GetTextPortions().GetObject(nP); in CreateTextPortions()
2362 …DBG_ASSERT( nP < pParaPortion->GetTextPortions().Count() || !pParaPortion->GetTextPortions().Count… in CreateTextPortions()
2363 …if ( nInvPortion && ( nPortionStart+pParaPortion->GetTextPortions().GetObject(nInvPortion)->GetLen… in CreateTextPortions()
2369 nPortionStart = nPortionStart - pParaPortion->GetTextPortions().GetObject(nInvPortion)->GetLen(); in CreateTextPortions()
2371 pParaPortion->GetTextPortions().DeleteFromPortion( nInvPortion ); in CreateTextPortions()
2386 pParaPortion->GetTextPortions().Insert( pNew, pParaPortion->GetTextPortions().Count()); in CreateTextPortions()
2389 DBG_ASSERT( pParaPortion->GetTextPortions().Count(), "Keine Portions?!" ); in CreateTextPortions()
2391 DBG_ASSERT( pParaPortion->DbgCheckTextPortions(), "Portions kaputt?" ); in CreateTextPortions()
2395 void ImpEditEngine::RecalcTextPortion( ParaPortion* pParaPortion, sal_uInt16 nStartPos, short nNewC… in RecalcTextPortion() argument
2397 DBG_ASSERT( pParaPortion->GetTextPortions().Count(), "Keine Portions!" ); in RecalcTextPortion()
2400 ContentNode* const pNode = pParaPortion->GetNode(); in RecalcTextPortion()
2410 nNewPortionPos = SplitTextPortion( pParaPortion, nStartPos ) + 1; in RecalcTextPortion()
2414 if ( ( nNewPortionPos < pParaPortion->GetTextPortions().Count() ) && in RecalcTextPortion()
2415 !pParaPortion->GetTextPortions()[nNewPortionPos]->GetLen() ) in RecalcTextPortion()
2417 …DBG_ASSERT( pParaPortion->GetTextPortions()[nNewPortionPos]->GetKind() == PORTIONKIND_TEXT, "Leere… in RecalcTextPortion()
2419 pParaPortion->GetTextPortions()[nNewPortionPos]->GetLen(); in RecalcTextPortion()
2425 pParaPortion->GetTextPortions().Insert( pNewPortion, nNewPortionPos ); in RecalcTextPortion()
2431 const sal_uInt16 nTP = pParaPortion->GetTextPortions(). in RecalcTextPortion()
2433 TextPortion* const pTP = pParaPortion->GetTextPortions()[ nTP ]; in RecalcTextPortion()
2450 sal_uInt16 nPortions = pParaPortion->GetTextPortions().Count(); in RecalcTextPortion()
2454 pTP = pParaPortion->GetTextPortions()[ nPortion ]; in RecalcTextPortion()
2468 pParaPortion->GetTextPortions().Remove( nPortion ); in RecalcTextPortion()
2472 TextPortion* pNext = pParaPortion->GetTextPortions()[ nPortion ]; in RecalcTextPortion()
2476 pParaPortion->GetTextPortions().Remove( nPortion ); in RecalcTextPortion()
2488 DBG_ASSERT( pParaPortion->GetTextPortions().Count(), "RecalcTextPortions: Keine mehr da!" ); in RecalcTextPortion()
2489 sal_uInt16 nLastPortion = pParaPortion->GetTextPortions().Count() - 1; in RecalcTextPortion()
2490 pTP = pParaPortion->GetTextPortions().GetObject( nLastPortion ); in RecalcTextPortion()
2495 pParaPortion->GetTextPortions().Remove( nLastPortion ); in RecalcTextPortion()
2498 TextPortion* pPrev = pParaPortion->GetTextPortions().GetObject( nLastPortion - 1 ); in RecalcTextPortion()
2507 DBG_ASSERT( pParaPortion->DbgCheckTextPortions(), "Portions kaputt?" ); in RecalcTextPortion()
2520 ParaPortion* pParaPortion = GetParaPortions().GetObject( nPara ); in SetTextRanger() local
2521 pParaPortion->MarkSelectionInvalid( 0, pParaPortion->GetNode()->Len() ); in SetTextRanger()
2522 pParaPortion->GetLines().Reset(); in SetTextRanger()
4725 void ImpEditEngine::ImplExpandCompressedPortions( EditLine* pLine, ParaPortion* pParaPortion, long … in ImplExpandCompressedPortions() argument
4733 TextPortion* pTP = pParaPortion->GetTextPortions()[ nPortion ]; in ImplExpandCompressedPortions()
4742 …pTP = ( nPortion > pLine->GetStartPortion() ) ? pParaPortion->GetTextPortions()[ --nPortion ] : NU… in ImplExpandCompressedPortions()
4763 sal_uInt16 nTxtPortion = pParaPortion->GetTextPortions().GetPos( pTP ); in ImplExpandCompressedPortions()
4764 … sal_uInt16 nTxtPortionStart = pParaPortion->GetTextPortions().GetStartPos( nTxtPortion ); in ImplExpandCompressedPortions()
4769 …ImplCalcAsianCompression( pParaPortion->GetNode(), pTP, nTxtPortionStart, pDXArray, (sal_uInt16)nC… in ImplExpandCompressedPortions()