Home | History | Annotate | Download | only in fpdfdoc

Lines Matching defs:pSection

120   CSection* pSection = m_pVT->m_SectionArray[m_CurPos.nSecIndex].get();
122 pdfium::CollectionSize<int32_t>(pSection->m_LineArray) - 1) {
139 CSection* pSection = m_pVT->m_SectionArray[m_CurPos.nSecIndex].get();
140 if (!pdfium::IndexInBounds(pSection->m_LineArray, m_CurPos.nLineIndex) ||
141 !pdfium::IndexInBounds(pSection->m_WordArray, m_CurPos.nWordIndex)) {
145 CPVT_WordInfo* pWord = pSection->m_WordArray[m_CurPos.nWordIndex].get();
150 m_pVT->InToOut(CFX_PointF(pWord->fWordX + pSection->m_Rect.left,
151 pWord->fWordY + pSection->m_Rect.top));
165 CSection* pSection = m_pVT->m_SectionArray[m_CurPos.nSecIndex].get();
166 if (!pdfium::IndexInBounds(pSection->m_LineArray, m_CurPos.nLineIndex))
169 CLine* pLine = pSection->m_LineArray[m_CurPos.nLineIndex].get();
171 CFX_PointF(pLine->m_LineInfo.fLineX + pSection->m_Rect.left,
172 pLine->m_LineInfo.fLineY + pSection->m_Rect.top));
247 CSection* pSection = m_SectionArray[wordplace.nSecIndex].get();
254 w < pdfium::CollectionSize<int32_t>(pSection->m_WordArray); ++w) {
256 pNewSection->AddWord(NewPlace, *pSection->m_WordArray[w]);
348 CSection* pSection = m_SectionArray[i].get();
349 nIndex += pdfium::CollectionSize<int32_t>(pSection->m_WordArray);
365 CSection* pSection = m_SectionArray[i].get();
366 nIndex += pdfium::CollectionSize<int32_t>(pSection->m_WordArray);
368 place = pSection->GetEndWordPlace();
375 pSection->UpdateWordPlace(place);
405 CSection* pSection = m_SectionArray[place.nSecIndex].get();
406 if (place > pSection->GetBeginWordPlace())
407 return pSection->GetPrevWordPlace(place);
420 CSection* pSection = m_SectionArray[place.nSecIndex].get();
421 if (place < pSection->GetEndWordPlace())
422 return pSection->GetNextWordPlace(place);
440 CSection* pSection = m_SectionArray[nMid].get();
441 if (IsFloatBigger(pt.y, pSection->m_Rect.top))
443 if (IsFloatBigger(pSection->m_Rect.bottom, pt.y))
445 if (IsFloatSmaller(pt.y, pSection->m_Rect.top)) {
450 if (IsFloatBigger(pt.y, pSection->m_Rect.bottom)) {
455 place = pSection->SearchWordPlace(
456 CFX_PointF(pt.x - pSection->m_Rect.left, pt.y - pSection->m_Rect.top));
473 CSection* pSection = m_SectionArray[place.nSecIndex].get();
477 return pSection->SearchWordPlace(pt.x - pSection->m_Rect.left, temp);
497 CSection* pSection = m_SectionArray[place.nSecIndex].get();
501 pdfium::CollectionSize<int32_t>(pSection->m_LineArray) - 1) {
502 return pSection->SearchWordPlace(pt.x - pSection->m_Rect.left, temp);
509 pt.x - pSection->m_Rect.left, temp);
522 CSection* pSection = m_SectionArray[place.nSecIndex].get();
523 if (!pdfium::IndexInBounds(pSection->m_LineArray, place.nLineIndex))
526 return pSection->m_LineArray[place.nLineIndex]->GetEndWordPlace();
544 for (const auto& pSection : m_SectionArray) {
546 pdfium::CollectionSize<int32_t>(pSection->m_WordArray) + kReturnLength;
558 auto pSection = pdfium::MakeUnique<CSection>(this);
559 pSection->m_Rect = CPVT_FloatRect();
560 pSection->SecPlace.nSecIndex = nSecIndex;
562 std::move(pSection));
591 CSection* pSection = m_SectionArray[place.nSecIndex].get();
592 if (!pdfium::IndexInBounds(pSection->m_WordArray, place.nWordIndex))
595 wordinfo = *pSection->m_WordArray[place.nWordIndex];
604 CSection* pSection = m_SectionArray[place.nSecIndex].get();
605 if (!pdfium::IndexInBounds(pSection->m_WordArray, place.nWordIndex))
608 *pSection->m_WordArray[place.nWordIndex] = wordinfo;
617 CSection* pSection = m_SectionArray[place.nSecIndex].get();
618 if (!pdfium::IndexInBounds(pSection->m_LineArray, place.nLineIndex))
621 lineinfo = pSection->m_LineArray[place.nLineIndex]->m_LineInfo;
719 CSection* pSection = m_SectionArray[place.nSecIndex].get();
720 if (!pdfium::IndexInBounds(pSection->m_WordArray, wordplace.nWordIndex + 1))
723 pSection->m_WordArray.erase(
724 pSection->m_WordArray.begin() + wordplace.nWordIndex + 1,
725 pSection->m_WordArray.end());
765 CSection* pSection = m_SectionArray[oldplace.nSecIndex].get();
768 pSection->AddWord(oldplace, *pWord);
789 CSection* pSection = m_SectionArray[place.nSecIndex].get();
795 if (pSection->m_WordArray.empty())
800 pSection->ClearWord(place);
809 CSection* pSection = m_SectionArray[place.nSecIndex].get();
817 pSection->ClearWord(rightplace);
868 for (const auto& pSection : m_SectionArray) {
869 CFX_SizeF size = pSection->GetSectionSize(fFontSize);
891 CSection* pSection = m_SectionArray[s].get();
892 pSection->SecPlace = place;
893 CPVT_FloatRect rcSec = pSection->m_Rect;
896 rcSec = pSection->Rearrange();
900 fOldHeight = pSection->m_Rect.bottom - pSection->m_Rect.top;
904 pSection->m_Rect = rcSec;
905 pSection->ResetLinePlace();