Lines Matching refs:pCnt

635 										 const SwCntntFrm *pCnt )  in lcl_CalcDownDist()  argument
640 if ( pCnt->Frm().IsInside( rPt ) ) in lcl_CalcDownDist()
643 return pCnt; in lcl_CalcDownDist()
647 const SwLayoutFrm *pUp = pCnt->IsInTab() ? pCnt->FindTabFrm()->GetUpper() : pCnt->GetUpper(); in lcl_CalcDownDist()
661 ? ( pCnt->Frm().Left() + in lcl_CalcDownDist()
662 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) in lcl_CalcDownDist()
663 : ( pCnt->Frm().Left() + in lcl_CalcDownDist()
664 pCnt->Frm().Width() - in lcl_CalcDownDist()
665 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) ) in lcl_CalcDownDist()
666 : ( pCnt->Frm().Top() + in lcl_CalcDownDist()
667 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ); in lcl_CalcDownDist()
684 return pCnt; in lcl_CalcDownDist()
697 const SwFrm *pLay = pUp->GetLeaf( MAKEPAGE_NONE, sal_False, pCnt ); in lcl_CalcDownDist()
715 return pCnt; in lcl_CalcDownDist()
730 const SwFrm *pPre = pCnt; in lcl_CalcDownDist()
731 const SwFrm *pLay = pUp->GetLeaf( MAKEPAGE_NONE, sal_True, pCnt ); in lcl_CalcDownDist()
839 pLay = pLay->GetLeaf( MAKEPAGE_NONE, sal_True, pCnt ); in lcl_CalcDownDist()
967 const SwCntntFrm *pCnt = pLay->ContainsCntnt(); in lcl_FindCntDiff() local
969 while ( pCnt && (bBody != pCnt->IsInDocBody() || bFtn != pCnt->IsInFtn())) in lcl_FindCntDiff()
971 pCnt = pCnt->GetNextCntntFrm(); in lcl_FindCntDiff()
972 if ( !pLay->IsAnLower( pCnt ) ) in lcl_FindCntDiff()
973 pCnt = 0; in lcl_FindCntDiff()
975 const SwCntntFrm *pNearest = pCnt; in lcl_FindCntDiff()
976 if ( pCnt ) in lcl_FindCntDiff()
982 sal_uInt32 dX = Max( pCnt->Frm().Left(), rPt.X() ) - in lcl_FindCntDiff()
983 Min( pCnt->Frm().Left(), rPt.X() ), in lcl_FindCntDiff()
984 dY = Max( pCnt->Frm().Top(), rPt.Y() ) - in lcl_FindCntDiff()
985 Min( pCnt->Frm().Top(), rPt.Y() ); in lcl_FindCntDiff()
989 if ( pCnt->Frm().Top() <= rPt.Y() ) in lcl_FindCntDiff()
994 rpCnt = pNearest = pCnt; in lcl_FindCntDiff()
1000 pNearest = pCnt; in lcl_FindCntDiff()
1002 pCnt = pCnt->GetNextCntntFrm(); in lcl_FindCntDiff()
1003 while ( pCnt && in lcl_FindCntDiff()
1004 (bBody != pCnt->IsInDocBody() || bFtn != pCnt->IsInFtn())) in lcl_FindCntDiff()
1005 pCnt = pCnt->GetNextCntntFrm(); in lcl_FindCntDiff()
1007 } while ( pCnt && pLay->IsAnLower( pCnt ) ); in lcl_FindCntDiff()
1016 const SwCntntFrm * MA_FASTCALL lcl_FindCnt( const Point &rPt, const SwCntntFrm *pCnt, in lcl_FindCnt() argument
1030 const SwLayoutFrm *pLay = pCnt->FindPageFrm(); in lcl_FindCnt()
1037 { pRet = pCnt; in lcl_FindCnt()
1121 const SwCntntFrm* pCnt; in FindAnchor() local
1124 pCnt = (const SwCntntFrm*)pOldAnch; in FindAnchor()
1135 pCnt = pTmpLay->GetCntntPos( aTmp, sal_False, bBodyOnly ); in FindAnchor()
1141 const sal_Bool bBody = pCnt->IsInDocBody() || bBodyOnly; in FindAnchor()
1142 const sal_Bool bFtn = !bBodyOnly && pCnt->IsInFtn(); in FindAnchor()
1148 const SwFrm *pPage = pCnt->FindPageFrm(); in FindAnchor()
1155 if ( pCnt->IsInDocBody() == bBody && pCnt->Frm().IsInside( aNew ) ) in FindAnchor()
1156 return pCnt; in FindAnchor()
1163 const SwCntntFrm *pTmp = pCnt->FindPageFrm()-> in FindAnchor()
1174 const SwCntntFrm *pUpFrm = pCnt; in FindAnchor()
1216 const SwCntntFrm *pDownFrm = pCnt; in FindAnchor()
1262 if ( pCnt->IsInFly() ) in FindAnchor()
1263 return pCnt; in FindAnchor()
1265 return ::lcl_FindCnt( aNew, pCnt, bBody, bFtn ); in FindAnchor()
1288 SwCntntFrm *pCnt = (SwCntntFrm*)::FindAnchor( GetAnchorFrm(), aNew ); in SetAbsPos() local
1289 if( pCnt->IsProtected() ) in SetAbsPos()
1290 pCnt = (SwCntntFrm*)GetAnchorFrm(); in SetAbsPos()
1293 const bool bVert = pCnt->IsVertical(); in SetAbsPos()
1295 const bool bVertL2R = pCnt->IsVertLR(); in SetAbsPos()
1296 const sal_Bool bRTL = pCnt->IsRightToLeft(); in SetAbsPos()
1307 if ( pCnt->IsInDocBody() ) in SetAbsPos()
1310 pTmpPage = pCnt->FindPageFrm(); in SetAbsPos()
1323 if ( pCnt->Frm().IsInside( aNew ) ) in SetAbsPos()
1329 ? ( pCnt->Frm().Left() + in SetAbsPos()
1330 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) in SetAbsPos()
1331 : ( pCnt->Frm().Left() + in SetAbsPos()
1332 pCnt->Frm().Width() - in SetAbsPos()
1333 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) ) in SetAbsPos()
1334 : ( pCnt->Frm().Top() + in SetAbsPos()
1335 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ); in SetAbsPos()
1353 pFrm = ::lcl_CalcDownDist( aDist, aNew, pCnt ); in SetAbsPos()
1359 if ( pCnt->IsFollow() ) in SetAbsPos()
1363 const SwCntntFrm *pOriginal = pCnt; in SetAbsPos()
1364 const SwCntntFrm *pFollow = pCnt; in SetAbsPos()
1365 while ( pCnt->IsFollow() ) in SetAbsPos()
1368 { pCnt = pCnt->GetPrevCntntFrm(); in SetAbsPos()
1369 } while ( pCnt->GetFollow() != pFollow ); in SetAbsPos()
1370 pFollow = pCnt; in SetAbsPos()
1390 nX = pCnt->Frm().Top() - pOriginal->Frm().Top(); in SetAbsPos()
1392 nX = pCnt->Frm().Left() - pOriginal->Frm().Left(); in SetAbsPos()
1401 ? ( pCnt->Frm().Left() + in SetAbsPos()
1402 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) in SetAbsPos()
1403 : ( pCnt->Frm().Left() + in SetAbsPos()
1404 pCnt->Frm().Width() - in SetAbsPos()
1405 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ) ) in SetAbsPos()
1406 : ( pCnt->Frm().Top() + in SetAbsPos()
1407 pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid() ); in SetAbsPos()
1428 const SwFrm* pTmpFrm = pFrm ? pFrm : pCnt; in SetAbsPos()
1436 nX += rNew.Y() - pCnt->Frm().Top() - nBaseOfstForFly; in SetAbsPos()
1444 if ( pCnt->IsRightToLeft() ) in SetAbsPos()
1445 nX += pCnt->Frm().Right() - rNew.X() - Frm().Width() + in SetAbsPos()
1448 nX += rNew.X() - pCnt->Frm().Left() - nBaseOfstForFly; in SetAbsPos()
1461 if( pCnt != GetAnchorFrm() || ( IsAutoPos() && pCnt->IsTxtFrm() && in SetAbsPos()
1467 if( IsAutoPos() && pCnt->IsTxtFrm() ) in SetAbsPos()
1471 if( pCnt->GetCrsrOfst( pPos, aPt, &eTmpState ) in SetAbsPos()
1472 && pPos->nNode == *pCnt->GetNode() ) in SetAbsPos()
1474 if ( pCnt->GetNode()->GetTxtNode() != NULL ) in SetAbsPos()
1477pCnt->GetNode()->GetTxtNode()->GetTxtAttrAt( pPos->nContent.GetIndex(), RES_TXTATR_INPUTFIELD, SwT… in SetAbsPos()
1491 pPos->nNode = *pCnt->GetNode(); in SetAbsPos()
1492 pPos->nContent.Assign( pCnt->GetNode(), 0 ); in SetAbsPos()
1497 pPos->nNode = *pCnt->GetNode(); in SetAbsPos()
1498 pPos->nContent.Assign( pCnt->GetNode(), 0 ); in SetAbsPos()