Lines Matching refs:pPor

181     SwLinePortion *pPor = m_pCurr->GetFirstPortion();  in Underflow()  local
182 if( pPor != pUnderflow ) in Underflow()
188 SwLinePortion *pTmpPrev = pPor; in Underflow()
189 while( pPor && pPor != pUnderflow ) in Underflow()
191 if( !pPor->IsKernPortion() && in Underflow()
192 ( pPor->Width() || pPor->IsSoftHyphPortion() ) ) in Underflow()
194 while( pTmpPrev != pPor ) in Underflow()
202 pPor = pPor->GetNextPortion(); in Underflow()
204 pPor = pTmpPrev; in Underflow()
205 if( pPor && // Skip flys and initials when underflow. in Underflow()
206 ( pPor->IsFlyPortion() || pPor->IsDropPortion() || in Underflow()
207 pPor->IsFlyCntPortion() ) ) in Underflow()
209 pPor->Move( rInf ); in Underflow()
210 rInf.SetLast( pPor ); in Underflow()
212 pPor = pUnderflow; in Underflow()
217 OSL_ENSURE( pPor, "SwTextFormatter::Underflow: overflow but underflow" ); in Underflow()
220 if ( pPor==rInf.GetLast() ) in Underflow()
226 pPor->Truncate(); in Underflow()
227 return pPor; // Is that enough? in Underflow()
232 if( !pPor || !(rInf.X() + pPor->Width()) ) in Underflow()
244 rInf.Width( static_cast<sal_uInt16>(rInf.X() + (pPor->Width() ? pPor->Width() - 1 : 0)) ); in Underflow()
245 rInf.SetLen( pPor->GetLen() ); in Underflow()
263 if( pPor->InTextGrp() && !pPor->InExpGrp() ) in Underflow()
266 *static_cast<SwLinePortion*>(m_pCurr) = *pPor; in Underflow()
267 m_pCurr->SetNextPortion( pPor->GetNextPortion() ); in Underflow()
269 pPor->SetNextPortion( nullptr ); in Underflow()
270 delete pPor; in Underflow()
271 pPor = m_pCurr; in Underflow()
277 SwLinePortion* pNext = pPor->GetNextPortion(); in Underflow()
287 pPor->Truncate(); in Underflow()
297 return pPor; in Underflow()
301 SwLinePortion *pPor ) in InsertPortion() argument
306 if( pPor == m_pCurr ) in InsertPortion()
310 pLast = pPor; in InsertPortion()
311 pPor = m_pCurr->GetNextPortion(); in InsertPortion()
316 … rInf.SetOtherThanFootnoteInside( rInf.IsOtherThanFootnoteInside() || !pPor->IsFootnotePortion() ); in InsertPortion()
327 pLast->Insert( pPor ); in InsertPortion()
329 … rInf.SetOtherThanFootnoteInside( rInf.IsOtherThanFootnoteInside() || !pPor->IsFootnotePortion() ); in InsertPortion()
332 if( m_pCurr->Height() < pPor->Height() ) in InsertPortion()
333 m_pCurr->Height( pPor->Height() ); in InsertPortion()
334 if( m_pCurr->GetAscent() < pPor->GetAscent() ) in InsertPortion()
335 m_pCurr->SetAscent( pPor->GetAscent() ); in InsertPortion()
340 … if (pLast->IsFlyCntPortion() && pPor->IsTextPortion() && pPor->GetLen() == TextFrameIndex(0)) in InsertPortion()
349 rInf.SetLast( pPor ); in InsertPortion()
350 while( pPor ) in InsertPortion()
352 if (!pPor->IsDropPortion()) in InsertPortion()
353 MergeCharacterBorder(*pPor, pLast, rInf); in InsertPortion()
355 pPor->Move( rInf ); in InsertPortion()
356 rInf.SetLast( pPor ); in InsertPortion()
357 pLast = pPor; in InsertPortion()
358 pPor = pPor->GetNextPortion(); in InsertPortion()
394 SwLinePortion *pPor = NewPortion( rInf ); in BuildPortions() local
416 while( pPor && !rInf.IsStop() ) in BuildPortions()
424 if( pPor->InFieldGrp() ) in BuildPortions()
425 static_cast<SwFieldPortion*>(pPor)->CheckScript( rInf ); in BuildPortions()
439 if ( pPor->InFieldGrp() ) in BuildPortions()
442 if ( static_cast<SwFieldPortion*>(pPor)->GetExpText( rInf, aAltText ) && in BuildPortions()
447 const SwFont* pTmpFnt = static_cast<SwFieldPortion*>(pPor)->GetFont(); in BuildPortions()
492 ! pPor->InTabGrp() ) in BuildPortions()
496 pLast->InFieldGrp() && pPor->InFieldGrp() ); in BuildPortions()
502 …else if ( bHasGrid && pGrid->IsSnapToChars() && ! pGridKernPortion && ! m_pMulti && ! pPor->InTabG… in BuildPortions()
505 pGridKernPortion = pPor->IsKernPortion() ? in BuildPortions()
506 static_cast<SwKernPortion*>(pPor) : in BuildPortions()
540 if ( pGridKernPortion != pPor ) in BuildPortions()
544 if( pPor->IsDropPortion() ) in BuildPortions()
545 MergeCharacterBorder(*static_cast<SwDropPortion*>(pPor)); in BuildPortions()
548 if( pPor->IsMultiPortion() && ( !m_pMulti || m_pMulti->IsBidi() ) ) in BuildPortions()
549 bFull = BuildMultiPortion( rInf, *static_cast<SwMultiPortion*>(pPor) ); in BuildPortions()
551 bFull = pPor->Format( rInf ); in BuildPortions()
561 if ( pPor->IsFlyPortion() ) in BuildPortions()
581 rInf.GetReformatStart() <= rInf.GetIdx() + pPor->GetLen() && in BuildPortions()
586 ( ( pPor->InTabGrp() && !pPor->IsTabLeftPortion() ) || in BuildPortions()
588 ( pPor->IsMultiPortion() && static_cast<SwMultiPortion*>(pPor)->IsBidi() ) || in BuildPortions()
590 ( ( pPor->IsDropPortion() || pPor->IsMultiPortion() ) && in BuildPortions()
592 rInf.GetReformatStart() <= rInf.GetIdx() + pPor->GetLen() ) in BuildPortions()
603 if ( IsUnderlineBreak( *pPor, *m_pFont ) ) in BuildPortions()
606 if( pPor->IsFlyCntPortion() || ( pPor->IsMultiPortion() && in BuildPortions()
607 static_cast<SwMultiPortion*>(pPor)->HasFlyInContent() ) ) in BuildPortions()
613 if( ! bHasGrid && rInf.HasScriptSpace() && pPor->InTextGrp() && in BuildPortions()
614 pPor->GetLen() && !pPor->InFieldGrp() ) in BuildPortions()
618 TextFrameIndex const nTmp = rInf.GetIdx() + pPor->GetLen(); in BuildPortions()
635 if ( rInf.X() + pPor->Width() + nDist <= rInf.Width() ) in BuildPortions()
636 new SwKernPortion( *pPor, nDist ); in BuildPortions()
645 …if ( bHasGrid && pGrid->IsSnapToChars() && pPor != pGridKernPortion && ! m_pMulti && ! pPor->InTab… in BuildPortions()
647 TextFrameIndex const nTmp = rInf.GetIdx() + pPor->GetLen(); in BuildPortions()
648 const SwTwips nRestWidth = rInf.Width() - rInf.X() - pPor->Width(); in BuildPortions()
667 sal_uInt16 nSumWidth = pPor->Width(); in BuildPortions()
688 new SwKernPortion( *pPor, static_cast<short>(nKernWidth - nKernWidth_1), in BuildPortions()
693 else if ( pPor->IsMultiPortion() || pPor->InFixMargGrp() || in BuildPortions()
694 pPor->IsFlyCntPortion() || pPor->InNumberGrp() || in BuildPortions()
695 pPor->InFieldGrp() || nCurrScript != nNextScript ) in BuildPortions()
703 if ( !pPor->GetLen() && !pPor->IsFlyPortion() in BuildPortions()
704 && !pPor->IsGrfNumPortion() && ! pPor->InNumberGrp() in BuildPortions()
705 && !pPor->IsMultiPortion() ) in BuildPortions()
706 CalcAscent( rInf, pPor ); in BuildPortions()
708 InsertPortion( rInf, pPor ); in BuildPortions()
709 pPor = NewPortion( rInf ); in BuildPortions()
747 void SwTextFormatter::CalcAscent( SwTextFormatInfo &rInf, SwLinePortion *pPor ) in CalcAscent() argument
750 if ( pPor->InFieldGrp() && static_cast<SwFieldPortion*>(pPor)->GetFont() ) in CalcAscent()
754 SwFont* pFieldFnt = static_cast<SwFieldPortion*>(pPor)->m_pFont.get(); in CalcAscent()
756 pPor->Height( rInf.GetTextHeight() ); in CalcAscent()
757 pPor->SetAscent( rInf.GetAscent() ); in CalcAscent()
763 else if ( pPor->InTabGrp() && pPor->GetLen() == TextFrameIndex(0) && in CalcAscent()
768 pPor->Height( pLast->Height() ); in CalcAscent()
769 pPor->SetAscent( pLast->GetAscent() ); in CalcAscent()
778 if ( pPor->IsQuoVadisPortion() ) in CalcAscent()
786 if ( pPor->GetLen() || !rInf.GetIdx() in CalcAscent()
806 if( bChg || bFirstPor || !pPor->GetAscent() in CalcAscent()
809 pPor->SetAscent( rInf.GetAscent() ); in CalcAscent()
810 pPor->Height( rInf.GetTextHeight() ); in CalcAscent()
815 pPor->Height( pLast->Height() ); in CalcAscent()
816 pPor->SetAscent( pLast->GetAscent() ); in CalcAscent()
820 if( pPor->InTextGrp() && bCalc ) in CalcAscent()
822 pPor->SetAscent(pPor->GetAscent() + in CalcAscent()
824 pPor->Height(pPor->Height() + in CalcAscent()
871 SwTextPortion *pPor = nullptr; in WhichTextPor() local
874 pPor = new SwToxPortion; in WhichTextPor()
878 pPor = new SwTextInputFieldPortion(); in WhichTextPor()
883 pPor = new SwRefPortion; in WhichTextPor()
886 pPor = new SwMetaPortion; in WhichTextPor()
901 pPor = new SwFieldFormDatePortion(pBM, true); in WhichTextPor()
903 pPor = new SwFieldMarkPortion(); // it's added in DateFieldmark? in WhichTextPor()
905 pPor = new SwFieldFormDatePortion(pBM, false); in WhichTextPor()
908 pPor = new SwFieldMarkPortion(); in WhichTextPor()
910 pPor = new SwFieldMarkPortion(); in WhichTextPor()
912 pPor = new SwFieldMarkPortion(); in WhichTextPor()
920 pPor = new SwFieldFormCheckboxPortion(); in WhichTextPor()
924 pPor = new SwFieldFormDropDownPortion(pBM, sw::mark::ExpandFieldmark(pBM)); in WhichTextPor()
931 pPor = new SwFieldMarkPortion(); in WhichTextPor()
935 if( !pPor ) in WhichTextPor()
938 pPor = m_pCurr; in WhichTextPor()
940 pPor = new SwTextPortion; in WhichTextPor()
944 return pPor; in WhichTextPor()
958 SwTextPortion *pPor = WhichTextPor( rInf ); in NewTextPortion() local
989 pPor->SetLen(TextFrameIndex(1)); in NewTextPortion()
990 CalcAscent( rInf, pPor ); in NewTextPortion()
994 sal_Int32( pPor->GetAscent() ) ) / 8; in NewTextPortion()
1017 pPor->SetLen( nNextChg - rInf.GetIdx() ); in NewTextPortion()
1018 rInf.SetLen( pPor->GetLen() ); in NewTextPortion()
1019 return pPor; in NewTextPortion()
1024 SwLinePortion *pPor = nullptr; in WhichFirstPortion() local
1032 pPor = rInf.GetRest(); in WhichFirstPortion()
1033 if( pPor->IsErgoSumPortion() ) in WhichFirstPortion()
1036 if( pPor->IsFootnoteNumPortion() ) in WhichFirstPortion()
1039 if( pPor->InNumberGrp() ) in WhichFirstPortion()
1044 return pPor; in WhichFirstPortion()
1057 pPor = NewErgoSumPortion( rInf ); in WhichFirstPortion()
1062 if( !pPor && !rInf.IsArrowDone() ) in WhichFirstPortion()
1066 pPor = new SwArrowPortion( *m_pCurr ); in WhichFirstPortion()
1071 if ( ! pPor && ! m_pCurr->GetNextPortion() ) in WhichFirstPortion()
1076 pPor = new SwKernPortion( *m_pCurr ); in WhichFirstPortion()
1080 if( !pPor ) in WhichFirstPortion()
1082 pPor = rInf.GetRest(); in WhichFirstPortion()
1084 if( pPor ) in WhichFirstPortion()
1102 pPor = NewFootnoteNumPortion( rInf ); in WhichFirstPortion()
1108 if( !rInf.IsErgoDone() && !pPor && ! rInf.IsMulti() ) in WhichFirstPortion()
1111 pPor = NewErgoSumPortion( rInf ); in WhichFirstPortion()
1116 if( !rInf.IsNumDone() && !pPor ) in WhichFirstPortion()
1123 pPor = NewNumberPortion( rInf ); in WhichFirstPortion()
1127 if( !pPor && GetDropFormat() && ! rInf.IsMulti() ) in WhichFirstPortion()
1128 pPor = NewDropPortion( rInf ); in WhichFirstPortion()
1131 if ( !pPor && !m_pCurr->GetNextPortion() ) in WhichFirstPortion()
1136 pPor = new SwKernPortion( *m_pCurr ); in WhichFirstPortion()
1141 if ( !pPor && !m_pCurr->GetNextPortion() && in WhichFirstPortion()
1145 pPor = NewTabPortion( rInf, true ); in WhichFirstPortion()
1149 if (!pPor) in WhichFirstPortion()
1151 pPor = TryNewNoLengthPortion(rInf); in WhichFirstPortion()
1154 return pPor; in WhichFirstPortion()
1161 const SwLinePortion *pPor = pCurr->GetNext()->GetNextPortion(); in lcl_OldFieldRest() local
1163 while( pPor && !bRet ) in lcl_OldFieldRest()
1165 bRet = (pPor->InFieldGrp() && static_cast<const SwFieldPortion*>(pPor)->IsFollow()) || in lcl_OldFieldRest()
1166 (pPor->IsMultiPortion() && static_cast<const SwMultiPortion*>(pPor)->IsFollowField()); in lcl_OldFieldRest()
1167 if( !pPor->GetLen() ) in lcl_OldFieldRest()
1169 pPor = pPor->GetNextPortion(); in lcl_OldFieldRest()
1244 SwLinePortion *pPor = WhichFirstPortion( rInf ); in NewPortion() local
1247 if ( !pPor ) in NewPortion()
1251 pPor = new SwHiddenTextPortion( nEnd - rInf.GetIdx() ); in NewPortion()
1254 if( !pPor ) in NewPortion()
1312 return pPor; in NewPortion()
1320 pPor = NewTabPortion( rInf, false ); break; in NewPortion()
1323 pPor = new SwBreakPortion( *rInf.GetLast() ); break; in NewPortion()
1326 pPor = new SwSoftHyphPortion; break; in NewPortion()
1330 pPor = new SwBlankPortion( cChar ); break; in NewPortion()
1333 pPor = new SwBlankPortion( '-' ); break; in NewPortion()
1337 pPor = new SwControlCharPortion( cChar ); break; in NewPortion()
1343 pPor = NewExtraPortion( rInf ); in NewPortion()
1375 pPor = rInf.GetRest(); in NewPortion()
1382 pPor = NewTextPortion( rInf ); in NewPortion()
1390 if( pPor && rInf.GetRest() ) in NewPortion()
1391 pPor->SetLen(TextFrameIndex(0)); in NewPortion()
1394 if( !pPor || rInf.IsStop() ) in NewPortion()
1396 delete pPor; in NewPortion()
1401 assert(pPor && "can only reach here with pPor existing"); in NewPortion()
1408 if ( pPor->IsFootnotePortion() ) in NewPortion()
1410 … const SwTextFootnote* pTextFootnote = static_cast<SwFootnotePortion*>(pPor)->GetTextFootnote(); in NewPortion()
1431 delete pPor; in NewPortion()
1432 pPor = new SwRotatedPortion(rInf.GetIdx() + TextFrameIndex(1), in NewPortion()
1439 else if ( pPor->InNumberGrp() ) in NewPortion()
1441 const SwFont* pNumFnt = static_cast<SwFieldPortion*>(pPor)->GetFont(); in NewPortion()
1448 delete pPor; in NewPortion()
1449 pPor = new SwRotatedPortion(TextFrameIndex(0), 900 == nDir in NewPortion()
1462 if( !pPor->GetAscent() && !pPor->Height() ) in NewPortion()
1463 CalcAscent( rInf, pPor ); in NewPortion()
1464 rInf.SetLen( pPor->GetLen() ); in NewPortion()
1473 m_pCurr->Height( pPor->Height() ); in NewPortion()
1474 m_pCurr->SetAscent( pPor->GetAscent() ); in NewPortion()
1477 OSL_ENSURE(pPor->Height(), "SwTextFormatter::NewPortion: something went wrong"); in NewPortion()
1478 if( pPor->IsPostItsPortion() && rInf.X() >= rInf.Width() && rInf.GetFly() ) in NewPortion()
1480 delete pPor; in NewPortion()
1481 pPor = rInf.GetFly(); in NewPortion()
1483 return pPor; in NewPortion()
1526 SwLinePortion* pPor = m_pCurr->GetFirstPortion(); in FormatLine() local
1528 while ( pPor ) in FormatLine()
1530 if ( pPor->IsFlyPortion() ) in FormatLine()
1534 nPOfst += pPor->Width(); in FormatLine()
1535 pPor = pPor->GetNextPortion(); in FormatLine()
1630 SwLinePortion* pPor = m_pCurr->GetFirstPortion(); in FormatLine() local
1632 while (pPor) in FormatLine()
1634 nSum += pPor->Width(); in FormatLine()
1635 pPor = pPor->GetNextPortion(); in FormatLine()
2769 SwLinePortion* pPor = rCurr.GetFirstPortion(); in lcl_CalcOptRepaint() local
2771 while ( pPor ) in lcl_CalcOptRepaint()
2773 if ( pPor->IsFlyPortion() ) in lcl_CalcOptRepaint()
2781 nPOfst = nX + pPor->Width(); in lcl_CalcOptRepaint()
2787 nX = nX + pPor->Width(); in lcl_CalcOptRepaint()
2788 nIdx = nIdx + pPor->GetLen(); in lcl_CalcOptRepaint()
2789 pPor = pPor->GetNextPortion(); in lcl_CalcOptRepaint()