Lines Matching refs:pPor

86         const SwLinePortion* pPor = &rPor;  in lcl_GetCharRectInsideField()  local
89 if ( pPor->InFldGrp() ) in lcl_GetCharRectInsideField()
91 pString = &((SwFldPortion*)pPor)->GetExp(); in lcl_GetCharRectInsideField()
100 if ( ! pPor->GetPortion() || nFldIdx + nFldLen > nCharOfst ) in lcl_GetCharRectInsideField()
104 rOrig.Pos().X() += pPor->Width(); in lcl_GetCharRectInsideField()
105 pPor = pPor->GetPortion(); in lcl_GetCharRectInsideField()
117 xub_StrLen nOldLen = pPor->GetLen(); in lcl_GetCharRectInsideField()
118 ((SwLinePortion*)pPor)->SetLen( nLen - 1 ); in lcl_GetCharRectInsideField()
119 const SwTwips nX1 = pPor->GetLen() ? in lcl_GetCharRectInsideField()
120 pPor->GetTxtSize( rInf ).Width() : in lcl_GetCharRectInsideField()
126 ((SwLinePortion*)pPor)->SetLen( nLen ); in lcl_GetCharRectInsideField()
127 nX2 = pPor->GetTxtSize( rInf ).Width(); in lcl_GetCharRectInsideField()
130 ((SwLinePortion*)pPor)->SetLen( nOldLen ); in lcl_GetCharRectInsideField()
466 SwLinePortion *pPor = pCurr->GetFirstPortion(); in GetEndCharRect() local
474 while( pPor ) in GetEndCharRect()
476 nX = nX + pPor->Width(); in GetEndCharRect()
477 if( pPor->InTxtGrp() || ( pPor->GetLen() && !pPor->IsFlyPortion() in GetEndCharRect()
478 && !pPor->IsHolePortion() ) || pPor->IsBreakPortion() ) in GetEndCharRect()
481 nPorHeight = pPor->Height(); in GetEndCharRect()
482 nPorAscent = pPor->GetAscent(); in GetEndCharRect()
484 pPor = pPor->GetPortion(); in GetEndCharRect()
555 SwLinePortion *pPor = pCurr->GetFirstPortion(); in _GetCharRect() local
570 while( pPor && !pPor->GetLen() && ! bInsideFirstField ) in _GetCharRect()
572 nX += pPor->Width(); in _GetCharRect()
573 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
574 nX += pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
580 if( pPor->InTxtGrp() || pPor->IsBreakPortion() || pPor->InTabGrp() ) in _GetCharRect()
586 if( pPor->IsMultiPortion() && ((SwMultiPortion*)pPor)->HasTabulator() ) in _GetCharRect()
599 if( pPor->InFixMargGrp() ) in _GetCharRect()
601 if( pPor->IsMarginPortion() ) in _GetCharRect()
618 pPor = pPor->GetPortion(); in _GetCharRect()
621 if( !pPor ) in _GetCharRect()
628 if( !pPor->IsMarginPortion() && !pPor->IsPostItsPortion() && in _GetCharRect()
629 (!pPor->InFldGrp() || pPor->GetAscent() ) ) in _GetCharRect()
631 nPorHeight = pPor->Height(); in _GetCharRect()
632 nPorAscent = pPor->GetAscent(); in _GetCharRect()
634 while( pPor && !pPor->IsBreakPortion() && ( aInf.GetIdx() < nOfst || in _GetCharRect()
635 ( bWidth && ( pPor->IsKernPortion() || pPor->IsMultiPortion() ) ) ) ) in _GetCharRect()
637 if( !pPor->IsMarginPortion() && !pPor->IsPostItsPortion() && in _GetCharRect()
638 (!pPor->InFldGrp() || pPor->GetAscent() ) ) in _GetCharRect()
640 nPorHeight = pPor->Height(); in _GetCharRect()
641 nPorAscent = pPor->GetAscent(); in _GetCharRect()
649 const sal_uInt8 nExtra = pPor->IsMultiPortion() && in _GetCharRect()
650 ! ((SwMultiPortion*)pPor)->IsBidi() && in _GetCharRect()
652 if ( aInf.GetIdx() + pPor->GetLen() < nOfst + nExtra ) in _GetCharRect()
654 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
655 nX += pPor->PrtWidth() + in _GetCharRect()
656 pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
659 if( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() ) in _GetCharRect()
675 if ( !pPor->IsFlyPortion() || ( pPor->GetPortion() && in _GetCharRect()
676 !pPor->GetPortion()->IsMarginPortion() ) ) in _GetCharRect()
677 nX += pPor->PrtWidth(); in _GetCharRect()
679 if( pPor->IsMultiPortion() ) in _GetCharRect()
681 if ( ((SwMultiPortion*)pPor)->HasTabulator() ) in _GetCharRect()
699 if ( ((SwMultiPortion*)pPor)->IsBidi() && in _GetCharRect()
700 aInf.GetIdx() + pPor->GetLen() == nOfst ) in _GetCharRect()
702 pLastBidiPor = (SwBidiPortion*)pPor; in _GetCharRect()
708 aInf.SetIdx( aInf.GetIdx() + pPor->GetLen() ); in _GetCharRect()
709 pPor = pPor->GetPortion(); in _GetCharRect()
713 if( pPor->IsMultiPortion() ) in _GetCharRect()
715 nTmpAscent = AdjustBaseLine( *pCurr, pPor ); in _GetCharRect()
729 if( ((SwMultiPortion*)pPor)->HasRotation() ) in _GetCharRect()
731 if( ((SwMultiPortion*)pPor)->IsRevers() ) in _GetCharRect()
736 else if( ((SwMultiPortion*)pPor)->IsDouble() ) in _GetCharRect()
738 else if( ((SwMultiPortion*)pPor)->IsBidi() ) in _GetCharRect()
743 SwTwips nTmpWidth = pPor->Width(); in _GetCharRect()
745 nTmpWidth += pPor->CalcSpacing(nSpaceAdd, aInf); in _GetCharRect()
748 Size( nTmpWidth, pPor->Height() ) ); in _GetCharRect()
764 pCurr = &((SwMultiPortion*)pPor)->GetRoot(); in _GetCharRect()
765 if( ((SwMultiPortion*)pPor)->IsDouble() ) in _GetCharRect()
774 ( ! ((SwMultiPortion*)pPor)->IsRuby() || in _GetCharRect()
775 ((SwMultiPortion*)pPor)->OnTop() ) ) in _GetCharRect()
781 ((SwMultiPortion*)pPor)->IsRuby() && in _GetCharRect()
782 ((SwMultiPortion*)pPor)->OnTop() ) in _GetCharRect()
791 sal_Bool bSpaceChg = ((SwMultiPortion*)pPor)-> in _GetCharRect()
802 ((SwMultiPortion*)pPor)->IsRuby() && bHasGrid; in _GetCharRect()
812 if ( ((SwMultiPortion*)pPor)->IsBidi() ) in _GetCharRect()
815 ((SwBidiPortion*)pPor)->GetLevel() % 2 ); in _GetCharRect()
829 if ( ((SwMultiPortion*)pPor)->IsDouble() ) in _GetCharRect()
837 if ( pCurr == &((SwMultiPortion*)pPor)->GetRoot() ) in _GetCharRect()
850 else if( ((SwMultiPortion*)pPor)->IsRuby() || in _GetCharRect()
851 ((SwMultiPortion*)pPor)->IsBidi() ) in _GetCharRect()
855 if( ((SwMultiPortion*)pPor)->HasRotation() ) in _GetCharRect()
870 if( ((SwMultiPortion*)pPor)->IsRevers() ) in _GetCharRect()
874 + pPor->Height() - nTmp - pOrig->Height(); in _GetCharRect()
880 if( ((SwMultiPortion*)pPor)->IsRevers() ) in _GetCharRect()
901 if ( ((SwMultiPortion*)pPor)->IsBidi() ) in _GetCharRect()
903 const SwTwips nPorWidth = pPor->Width() + in _GetCharRect()
904 pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
912 if( ((SwMultiPortion*)pPor)->HasBrackets() ) in _GetCharRect()
914 ((SwDoubleLinePortion*)pPor)->PreWidth(); in _GetCharRect()
927 if ( pPor->PrtWidth() ) in _GetCharRect()
929 xub_StrLen nOldLen = pPor->GetLen(); in _GetCharRect()
930 pPor->SetLen( nOfst - aInf.GetIdx() ); in _GetCharRect()
931 aInf.SetLen( pPor->GetLen() ); in _GetCharRect()
932 if( nX || !pPor->InNumberGrp() ) in _GetCharRect()
940 nX += pPor->GetTxtSize( aInf ).Width(); in _GetCharRect()
942 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
943 nX += pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
946 pPor->SetLen( pPor->GetLen() + 1 ); in _GetCharRect()
947 aInf.SetLen( pPor->GetLen() ); in _GetCharRect()
949 nTmp += pPor->GetTxtSize( aInf ).Width(); in _GetCharRect()
951 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
952 nTmp += pPor->CalcSpacing(nSpaceAdd, aInf); in _GetCharRect()
956 pPor->SetLen( nOldLen ); in _GetCharRect()
964 if( pPor ) in _GetCharRect()
966 ASSERT( !pPor->InNumberGrp() || bInsideFirstField, "Number surprise" ); in _GetCharRect()
968 if( pPor->InFldGrp() && pPor->GetLen() ) in _GetCharRect()
970 SwFldPortion *pTmp = (SwFldPortion*)pPor; in _GetCharRect()
991 while( pPor && !pPor->GetLen() && ! bInsideFirstField && in _GetCharRect()
992 ( pPor->IsFlyPortion() || pPor->IsKernPortion() || in _GetCharRect()
993 pPor->IsBlankPortion() || pPor->InTabGrp() || in _GetCharRect()
994 ( !bEmptyFld && pPor->InFldGrp() ) ) ) in _GetCharRect()
996 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
997 nX += pPor->PrtWidth() + in _GetCharRect()
998 pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
1001 if( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() ) in _GetCharRect()
1014 if ( !pPor->IsFlyPortion() || ( pPor->GetPortion() && in _GetCharRect()
1015 !pPor->GetPortion()->IsMarginPortion() ) ) in _GetCharRect()
1016 nX += pPor->PrtWidth(); in _GetCharRect()
1018 if( pPor->IsMultiPortion() && in _GetCharRect()
1019 ((SwMultiPortion*)pPor)->HasTabulator() ) in _GetCharRect()
1032 if( !pPor->IsFlyPortion() ) in _GetCharRect()
1034 nPorHeight = pPor->Height(); in _GetCharRect()
1035 nPorAscent = pPor->GetAscent(); in _GetCharRect()
1037 pPor = pPor->GetPortion(); in _GetCharRect()
1040 if( aInf.GetIdx() == nOfst && pPor && pPor->InHyphGrp() && in _GetCharRect()
1041 pPor->GetPortion() && pPor->GetPortion()->InFixGrp() ) in _GetCharRect()
1047 while( pPor && !pPor->GetLen() ) in _GetCharRect()
1050 nX += pPor->Width(); in _GetCharRect()
1051 if( !pPor->IsMarginPortion() ) in _GetCharRect()
1053 nPorHeight = pPor->Height(); in _GetCharRect()
1054 nPorAscent = pPor->GetAscent(); in _GetCharRect()
1056 pPor = pPor->GetPortion(); in _GetCharRect()
1059 if( pPor && pCMS ) in _GetCharRect()
1061 if( pCMS->bFieldInfo && pPor->InFldGrp() && pPor->Width() ) in _GetCharRect()
1062 pOrig->Width( pPor->Width() ); in _GetCharRect()
1063 if( pPor->IsDropPortion() ) in _GetCharRect()
1065 nPorAscent = ((SwDropPortion*)pPor)->GetDropHeight(); in _GetCharRect()
1069 nPorAscent = pPor->Height(); in _GetCharRect()
1072 ((SwDropPortion*)pPor)->GetDropDescent() ); in _GetCharRect()
1079 if( bWidth && pPor->PrtWidth() && pPor->GetLen() && in _GetCharRect()
1082 if( !pPor->IsFlyPortion() && pPor->Height() && in _GetCharRect()
1083 pPor->GetAscent() ) in _GetCharRect()
1085 nPorHeight = pPor->Height(); in _GetCharRect()
1086 nPorAscent = pPor->GetAscent(); in _GetCharRect()
1089 if( 2 > pPor->GetLen() ) in _GetCharRect()
1091 nTmp = pPor->Width(); in _GetCharRect()
1092 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
1093 nTmp += pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
1098 xub_StrLen nOldLen = pPor->GetLen(); in _GetCharRect()
1099 pPor->SetLen( 1 ); in _GetCharRect()
1100 aInf.SetLen( pPor->GetLen() ); in _GetCharRect()
1105 nTmp = pPor->GetTxtSize( aInf ).Width(); in _GetCharRect()
1107 if ( pPor->InSpaceGrp() && nSpaceAdd ) in _GetCharRect()
1108 nTmp += pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
1109 pPor->SetLen( nOldLen ); in _GetCharRect()
1119 lcl_GetCharRectInsideField( aInf, *pOrig, *pCMS, *pPor ); in _GetCharRect()
1128 ( pPor && in _GetCharRect()
1129 pPor->IsMultiPortion() && in _GetCharRect()
1130 ((SwMultiPortion*)pPor)->IsBidi() ) ) ) in _GetCharRect()
1163 const sal_uInt8 nPortionLevel = ((SwBidiPortion*)pPor)->GetLevel(); in _GetCharRect()
1169 pOrig->Pos().X() += pPor->Width() + in _GetCharRect()
1170 pPor->CalcSpacing( nSpaceAdd, aInf ); in _GetCharRect()
1317 SwLinePortion *pPor = pCurr->GetFirstPortion(); in GetCrsrOfst() local
1332 KSHORT nWidth = pPor->Width(); in GetCrsrOfst()
1335 if ( pPor->InSpaceGrp() && nSpaceAdd ) in GetCrsrOfst()
1338 nWidth = nWidth + sal_uInt16( pPor->CalcSpacing( nSpaceAdd, GetInfo() ) ); in GetCrsrOfst()
1340 if( ( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() ) || in GetCrsrOfst()
1341 ( pPor->IsMultiPortion() && ((SwMultiPortion*)pPor)->HasTabulator() ) in GetCrsrOfst()
1363 if ( pPor->IsPostItsPortion() ) in GetCrsrOfst()
1364 nWidth30 = 30 + pPor->GetViewWidth( GetInfo() ) / 2; in GetCrsrOfst()
1366 nWidth30 = ! nWidth && pPor->GetLen() && pPor->InToxRefOrFldGrp() ? in GetCrsrOfst()
1370 while( pPor->GetPortion() && nWidth30 < nX && !pPor->IsBreakPortion() ) in GetCrsrOfst()
1373 nCurrStart = nCurrStart + pPor->GetLen(); in GetCrsrOfst()
1374 bHolePortion = pPor->IsHolePortion(); in GetCrsrOfst()
1375 pPor = pPor->GetPortion(); in GetCrsrOfst()
1376 nWidth = pPor->Width(); in GetCrsrOfst()
1379 if ( pPor->InSpaceGrp() && nSpaceAdd ) in GetCrsrOfst()
1382 nWidth = nWidth + sal_uInt16( pPor->CalcSpacing( nSpaceAdd, GetInfo() ) ); in GetCrsrOfst()
1385 if( ( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() ) || in GetCrsrOfst()
1386 ( pPor->IsMultiPortion() && ((SwMultiPortion*)pPor)->HasTabulator() ) in GetCrsrOfst()
1407 if ( pPor->IsPostItsPortion() ) in GetCrsrOfst()
1408 nWidth30 = 30 + pPor->GetViewWidth( GetInfo() ) / 2; in GetCrsrOfst()
1410 nWidth30 = ! nWidth && pPor->GetLen() && pPor->InToxRefOrFldGrp() ? in GetCrsrOfst()
1413 if( !pPor->IsFlyPortion() && !pPor->IsMarginPortion() ) in GetCrsrOfst()
1414 bLastHyph = pPor->InHyphGrp(); in GetCrsrOfst()
1417 const sal_Bool bLastPortion = (0 == pPor->GetPortion()); in GetCrsrOfst()
1421 SwLinePortion *pNextPor = pPor->GetPortion(); in GetCrsrOfst()
1424 nCurrStart = nCurrStart + pPor->GetLen(); in GetCrsrOfst()
1425 pPor = pNextPor; in GetCrsrOfst()
1426 if( !pPor->IsFlyPortion() && !pPor->IsMarginPortion() ) in GetCrsrOfst()
1427 bLastHyph = pPor->InHyphGrp(); in GetCrsrOfst()
1428 pNextPor = pPor->GetPortion(); in GetCrsrOfst()
1434 xub_StrLen nLength = pPor->GetLen(); in GetCrsrOfst()
1439 ( pPor->InNumberGrp() && !pPor->IsFtnNumPortion() ) || in GetCrsrOfst()
1440 ( pPor->IsMarginPortion() && nWidth > nX + 30 ) ) ) in GetCrsrOfst()
1449 if (! (2 * nX < nWidth && pPor->InNumberGrp() && in GetCrsrOfst()
1450 !pPor->IsFtnNumPortion())) in GetCrsrOfst()
1462 if( pPor->IsFlyPortion() && bFieldInfo ) in GetCrsrOfst()
1467 if( pPor->IsFtnNumPortion()) in GetCrsrOfst()
1469 else if (pPor->InNumberGrp() ) // #i23726# in GetCrsrOfst()
1481 ( pPor->IsMarginPortion() && !pPor->GetPortion() && in GetCrsrOfst()
1486 else if( pPor->InFldGrp() && ((SwFldPortion*)pPor)->IsFollow() in GetCrsrOfst()
1493 KSHORT nHeight = pPor->Height(); in GetCrsrOfst()
1507 if( !( nChgNode && pPos && pPor->IsFlyCntPortion() ) ) in GetCrsrOfst()
1509 if ( pPor->InFldGrp() || in GetCrsrOfst()
1510 ( pPor->IsMultiPortion() && in GetCrsrOfst()
1511 ((SwMultiPortion*)pPor)->IsBidi() ) ) in GetCrsrOfst()
1516 nHeight = pPor->Height(); in GetCrsrOfst()
1522 ( ! pPor->InFldGrp() || in GetCrsrOfst()
1523 !((SwFldPortion*)pPor)->HasFollow() ) ) in GetCrsrOfst()
1526 else if ( ( !pPor->IsFlyPortion() || ( pPor->GetPortion() && in GetCrsrOfst()
1527 !pPor->GetPortion()->IsMarginPortion() && in GetCrsrOfst()
1528 !pPor->GetPortion()->IsHolePortion() ) ) in GetCrsrOfst()
1531 ( pPor->GetPortion() && in GetCrsrOfst()
1532 pPor->GetPortion()->IsPostItsPortion() ) ) in GetCrsrOfst()
1543 if ( pPor->IsPostItsPortion() || pPor->IsBreakPortion() || in GetCrsrOfst()
1544 pPor->InToxRefGrp() ) in GetCrsrOfst()
1546 if ( pPor->InFldGrp() ) in GetCrsrOfst()
1548 if( bRightOver && !((SwFldPortion*)pPor)->HasFollow() ) in GetCrsrOfst()
1559 ( nWidth == nX && pPor->IsMultiPortion() && ((SwMultiPortion*)pPor)->IsDouble() ) ) in GetCrsrOfst()
1561 if( pPor->IsMultiPortion() ) in GetCrsrOfst()
1564 SwTwips nTmpY = rPoint.Y() - pCurr->GetAscent() + pPor->GetAscent(); in GetCrsrOfst()
1570 ( ((SwMultiPortion*)pPor)->IsRuby() && in GetCrsrOfst()
1571 ((SwMultiPortion*)pPor)->OnTop() ) ) in GetCrsrOfst()
1572 nTmpY += ((SwMultiPortion*)pPor)->Height(); in GetCrsrOfst()
1577 if ( ((SwMultiPortion*)pPor)->IsRuby() && in GetCrsrOfst()
1578 ! ((SwMultiPortion*)pPor)->OnTop() ) in GetCrsrOfst()
1581 SwTxtCursorSave aSave( (SwTxtCursor*)this, (SwMultiPortion*)pPor, in GetCrsrOfst()
1585 if ( ((SwMultiPortion*)pPor)->IsBidi() ) in GetCrsrOfst()
1587 const sal_uInt8 nBidiLevel = ((SwBidiPortion*)pPor)->GetLevel(); in GetCrsrOfst()
1591 if( ((SwMultiPortion*)pPor)->HasRotation() ) in GetCrsrOfst()
1594 if( !((SwMultiPortion*)pPor)->IsRevers() ) in GetCrsrOfst()
1595 nTmpY = pPor->Height() - nTmpY; in GetCrsrOfst()
1601 if( ((SwMultiPortion*)pPor)->HasBrackets() ) in GetCrsrOfst()
1603 sal_uInt16 nPreWidth = ((SwDoubleLinePortion*)pPor)->PreWidth(); in GetCrsrOfst()
1613 if( pPor->InTxtGrp() ) in GetCrsrOfst()
1626 SwTxtSlot aDiffTxt( &aSizeInf, ((SwTxtPortion*)pPor), false, false ); in GetCrsrOfst()
1627 SwFontSave aSave( aSizeInf, pPor->IsDropPortion() ? in GetCrsrOfst()
1628 ((SwDropPortion*)pPor)->GetFnt() : NULL ); in GetCrsrOfst()
1638 pPor->GetLen() ); in GetCrsrOfst()
1646 aDrawInf.SetNumberOfBlanks( pPor->InTxtGrp() ? in GetCrsrOfst()
1647 … static_cast<const SwTxtPortion*>(pPor)->GetSpaceCnt( aSizeInf, nCharCnt ) : in GetCrsrOfst()
1652 if ( pPor->InFldGrp() && pCMS && pCMS->pSpecialPos ) in GetCrsrOfst()
1663 ! pPor->InFldGrp() ) in GetCrsrOfst()
1669 if ( pPor->InFldGrp() && pCMS && pCMS->pSpecialPos ) in GetCrsrOfst()
1680 if( bFieldInfo && nLength == pPor->GetLen() && in GetCrsrOfst()
1681 ( ! pPor->GetPortion() || in GetCrsrOfst()
1682 ! pPor->GetPortion()->IsPostItsPortion() ) ) in GetCrsrOfst()
1690 if( nChgNode && pPos && pPor->IsFlyCntPortion() in GetCrsrOfst()
1691 && !( (SwFlyCntPortion*)pPor )->IsDraw() ) in GetCrsrOfst()
1696 SwFlyInCntFrm *pTmp = ( (SwFlyCntPortion*)pPor )->GetFlyFrm(); in GetCrsrOfst()
1715 nLength = ((SwFlyCntPortion*)pPor)-> in GetCrsrOfst()
1728 nLength = pPor->GetCrsrOfst( nX ); in GetCrsrOfst()
1737 if( nOffset && pPor->GetLen() == nLength && pPor->GetPortion() && in GetCrsrOfst()
1738 !pPor->GetPortion()->GetLen() && pPor->GetPortion()->InHyphGrp() ) in GetCrsrOfst()