Lines Matching refs:m_pVT
568 : m_pVT(pdfium::MakeUnique<CPDF_VariableText>()), in CPWL_EditImpl()
579 m_pVT->Initialize(); in Initialize()
580 SetCaret(m_pVT->GetBeginWordPlace()); in Initialize()
586 m_pVT->SetProvider(m_pVTProvider.get()); in SetFontMap()
600 pdfium::MakeUnique<CPWL_EditImpl_Iterator>(this, m_pVT->GetIterator()); in GetIterator()
610 m_pVT->SetPlateRect(rect); in SetPlateRect()
616 m_pVT->SetAlignment(nFormat); in SetAlignmentH()
628 m_pVT->SetPasswordChar(wSubWord); in SetPasswordChar()
634 m_pVT->SetLimitChar(nLimitChar); in SetLimitChar()
639 m_pVT->SetCharArray(nCharArray); in SetCharArray()
644 m_pVT->SetCharSpace(fCharSpace); in SetCharSpace()
649 m_pVT->SetMultiLine(bMultiLine); in SetMultiLine()
655 m_pVT->SetAutoReturn(bAuto); in SetAutoReturn()
661 m_pVT->SetAutoFontSize(bAuto); in SetAutoFontSize()
667 m_pVT->SetFontSize(fFontSize); in SetFontSize()
684 if (m_pVT->IsValid()) { in SetSelection()
691 SetSelection(m_pVT->WordIndexToWordPlace(nStartChar), in SetSelection()
692 m_pVT->WordIndexToWordPlace(nEndChar)); in SetSelection()
694 SetSelection(m_pVT->WordIndexToWordPlace(nEndChar), in SetSelection()
695 m_pVT->WordIndexToWordPlace(nStartChar)); in SetSelection()
703 if (!m_pVT->IsValid()) in SetSelection()
718 if (!m_pVT->IsValid()) in GetSelection()
722 nStartChar = m_pVT->WordPlaceToWordIndex(m_wpCaret); in GetSelection()
723 nEndChar = m_pVT->WordPlaceToWordIndex(m_wpCaret); in GetSelection()
727 nStartChar = m_pVT->WordPlaceToWordIndex(m_SelState.BeginPos); in GetSelection()
728 nEndChar = m_pVT->WordPlaceToWordIndex(m_SelState.EndPos); in GetSelection()
731 nStartChar = m_pVT->WordPlaceToWordIndex(m_SelState.EndPos); in GetSelection()
732 nEndChar = m_pVT->WordPlaceToWordIndex(m_SelState.BeginPos); in GetSelection()
736 if (m_pVT->IsValid()) in GetCaret()
737 return m_pVT->WordPlaceToWordIndex(m_wpCaret); in GetCaret()
748 if (!m_pVT->IsValid()) in GetText()
751 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in GetText()
769 if (!m_pVT->IsValid()) in GetRangeText()
772 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in GetRangeText()
774 m_pVT->UpdateWordPlace(wrTemp.BeginPos); in GetRangeText()
775 m_pVT->UpdateWordPlace(wrTemp.EndPos); in GetRangeText()
800 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in GetTotalLines()
843 return m_pVT->GetFontSize(); in GetFontSize()
847 return m_pVT->GetPasswordChar(); in GetPasswordChar()
851 return m_pVT->GetCharArray(); in GetCharArray()
855 return VTToEdit(m_pVT->GetContentRect()); in GetContentRect()
859 return m_pVT->GetCharSpace(); in GetCharSpace()
863 if (m_pVT->IsValid()) in GetWholeWordRange()
864 return CPVT_WordRange(m_pVT->GetBeginWordPlace(), m_pVT->GetEndWordPlace()); in GetWholeWordRange()
873 if (m_pVT->IsValid()) { in GetVisibleWordRange()
874 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in GetVisibleWordRange()
877 m_pVT->SearchWordPlace(EditToVT(CFX_PointF(rcPlate.left, rcPlate.top))); in GetVisibleWordRange()
878 CPVT_WordPlace place2 = m_pVT->SearchWordPlace( in GetVisibleWordRange()
888 if (m_pVT->IsValid()) { in SearchWordPlace()
889 return m_pVT->SearchWordPlace(EditToVT(point)); in SearchWordPlace()
896 if (m_pVT->IsValid()) { in Paint()
906 if (m_pVT->IsValid()) { in RearrangeAll()
907 m_pVT->UpdateWordPlace(m_wpCaret); in RearrangeAll()
908 m_pVT->RearrangeAll(); in RearrangeAll()
909 m_pVT->UpdateWordPlace(m_wpCaret); in RearrangeAll()
916 if (m_pVT->IsValid()) { in RearrangePart()
917 m_pVT->UpdateWordPlace(m_wpCaret); in RearrangePart()
918 m_pVT->RearrangePart(range); in RearrangePart()
919 m_pVT->UpdateWordPlace(m_wpCaret); in RearrangePart()
927 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in SetContentChanged()
936 if (!m_pVT->IsValid()) in SelectAll()
946 if (!m_pVT->IsValid() || m_SelState.IsEmpty()) in SelectNone()
958 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in VTToEdit()
959 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in VTToEdit()
980 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in EditToVT()
981 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in EditToVT()
1013 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in SetScrollInfo()
1014 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in SetScrollInfo()
1034 if (m_pVT->IsValid()) { in SetScrollPosX()
1046 if (m_pVT->IsValid()) { in SetScrollPosY()
1074 if (m_pVT->IsValid()) { in SetScrollLimit()
1075 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in SetScrollLimit()
1076 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in SetScrollLimit()
1105 if (!m_pVT->IsValid()) in ScrollToCaret()
1108 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in ScrollToCaret()
1129 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in ScrollToCaret()
1154 if (m_bEnableRefresh && m_pVT->IsValid()) { in Refresh()
1177 if (!m_pVT->IsValid()) in RefreshPushLineRects()
1180 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in RefreshPushLineRects()
1182 m_pVT->UpdateWordPlace(wpBegin); in RefreshPushLineRects()
1184 m_pVT->UpdateWordPlace(wpEnd); in RefreshPushLineRects()
1205 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in RefreshWordRange()
1208 m_pVT->UpdateWordPlace(wrTemp.BeginPos); in RefreshWordRange()
1209 m_pVT->UpdateWordPlace(wrTemp.EndPos); in RefreshWordRange()
1266 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in SetCaretInfo()
1296 if (!m_pVT->IsValid()) in OnMouseDown()
1300 SetCaret(m_pVT->SearchWordPlace(EditToVT(point))); in OnMouseDown()
1310 if (!m_pVT->IsValid()) in OnMouseMove()
1313 SetCaret(m_pVT->SearchWordPlace(EditToVT(point))); in OnMouseMove()
1325 if (!m_pVT->IsValid()) in OnVK_UP()
1328 SetCaret(m_pVT->GetUpWordPlace(m_wpCaret, m_ptCaret)); in OnVK_UP()
1348 if (!m_pVT->IsValid()) in OnVK_DOWN()
1351 SetCaret(m_pVT->GetDownWordPlace(m_wpCaret, m_ptCaret)); in OnVK_DOWN()
1371 if (!m_pVT->IsValid()) in OnVK_LEFT()
1375 if (m_wpCaret == m_pVT->GetLineBeginPlace(m_wpCaret) && in OnVK_LEFT()
1376 m_wpCaret != m_pVT->GetSectionBeginPlace(m_wpCaret)) { in OnVK_LEFT()
1377 SetCaret(m_pVT->GetPrevWordPlace(m_wpCaret)); in OnVK_LEFT()
1379 SetCaret(m_pVT->GetPrevWordPlace(m_wpCaret)); in OnVK_LEFT()
1401 if (m_wpCaret == m_pVT->GetLineBeginPlace(m_wpCaret) && in OnVK_LEFT()
1402 m_wpCaret != m_pVT->GetSectionBeginPlace(m_wpCaret)) { in OnVK_LEFT()
1403 SetCaret(m_pVT->GetPrevWordPlace(m_wpCaret)); in OnVK_LEFT()
1405 SetCaret(m_pVT->GetPrevWordPlace(m_wpCaret)); in OnVK_LEFT()
1414 if (!m_pVT->IsValid()) in OnVK_RIGHT()
1418 SetCaret(m_pVT->GetNextWordPlace(m_wpCaret)); in OnVK_RIGHT()
1419 if (m_wpCaret == m_pVT->GetLineEndPlace(m_wpCaret) && in OnVK_RIGHT()
1420 m_wpCaret != m_pVT->GetSectionEndPlace(m_wpCaret)) in OnVK_RIGHT()
1421 SetCaret(m_pVT->GetNextWordPlace(m_wpCaret)); in OnVK_RIGHT()
1444 SetCaret(m_pVT->GetNextWordPlace(m_wpCaret)); in OnVK_RIGHT()
1445 if (m_wpCaret == m_pVT->GetLineEndPlace(m_wpCaret) && in OnVK_RIGHT()
1446 m_wpCaret != m_pVT->GetSectionEndPlace(m_wpCaret)) { in OnVK_RIGHT()
1447 SetCaret(m_pVT->GetNextWordPlace(m_wpCaret)); in OnVK_RIGHT()
1457 if (!m_pVT->IsValid()) in OnVK_HOME()
1462 SetCaret(m_pVT->GetBeginWordPlace()); in OnVK_HOME()
1464 SetCaret(m_pVT->GetLineBeginPlace(m_wpCaret)); in OnVK_HOME()
1482 SetCaret(m_pVT->GetBeginWordPlace()); in OnVK_HOME()
1484 SetCaret(m_pVT->GetLineBeginPlace(m_wpCaret)); in OnVK_HOME()
1494 if (!m_pVT->IsValid()) in OnVK_END()
1499 SetCaret(m_pVT->GetEndWordPlace()); in OnVK_END()
1501 SetCaret(m_pVT->GetLineEndPlace(m_wpCaret)); in OnVK_END()
1519 SetCaret(m_pVT->GetEndWordPlace()); in OnVK_END()
1521 SetCaret(m_pVT->GetLineEndPlace(m_wpCaret)); in OnVK_END()
1534 if (IsTextOverflow() || !m_pVT->IsValid()) in InsertWord()
1537 m_pVT->UpdateWordPlace(m_wpCaret); in InsertWord()
1539 m_pVT->InsertWord(m_wpCaret, word, GetCharSetFromUnicode(word, charset))); in InsertWord()
1558 if (IsTextOverflow() || !m_pVT->IsValid()) in InsertReturn()
1561 m_pVT->UpdateWordPlace(m_wpCaret); in InsertReturn()
1562 SetCaret(m_pVT->InsertSection(m_wpCaret)); in InsertReturn()
1585 if (!m_pVT->IsValid() || m_wpCaret == m_pVT->GetBeginWordPlace()) in Backspace()
1590 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in Backspace()
1594 m_pVT->UpdateWordPlace(m_wpCaret); in Backspace()
1595 SetCaret(m_pVT->BackSpaceWord(m_wpCaret)); in Backspace()
1618 if (!m_pVT->IsValid() || m_wpCaret == m_pVT->GetEndWordPlace()) in Delete()
1623 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in Delete()
1624 pIterator->SetAt(m_pVT->GetNextWordPlace(m_wpCaret)); in Delete()
1627 m_pVT->UpdateWordPlace(m_wpCaret); in Delete()
1628 bool bSecEnd = (m_wpCaret == m_pVT->GetSectionEndPlace(m_wpCaret)); in Delete()
1629 SetCaret(m_pVT->DeleteWord(m_wpCaret)); in Delete()
1654 if (m_pVT->IsValid()) { in Clear()
1655 m_pVT->DeleteWords(GetWholeWordRange()); in Clear()
1656 SetCaret(m_pVT->GetBeginWordPlace()); in Clear()
1665 if (!m_pVT->IsValid() || m_SelState.IsEmpty()) in Clear()
1675 SetCaret(m_pVT->DeleteWords(range)); in Clear()
1697 m_pVT->UpdateWordPlace(m_wpCaret); in InsertText()
1718 if (m_pVT->IsValid()) { in PaintInsertText()
1757 if (!m_pVT->IsValid()) in SetCaretOrigin()
1760 CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator(); in SetCaretOrigin()
1774 if (m_pVT->IsValid()) in WordIndexToWordPlace()
1775 return m_pVT->WordIndexToWordPlace(index); in WordIndexToWordPlace()
1781 int32_t nTotalWords = m_pVT->GetTotalWords(); in IsTextFull()
1782 int32_t nLimitChar = m_pVT->GetLimitChar(); in IsTextFull()
1783 int32_t nCharArray = m_pVT->GetCharArray(); in IsTextFull()
1791 CFX_FloatRect rcPlate = m_pVT->GetPlateRect(); in IsTextOverflow()
1792 CFX_FloatRect rcContent = m_pVT->GetContentRect(); in IsTextOverflow()
1794 if (m_pVT->IsMultiLine() && GetTotalLines() > 1 && in IsTextOverflow()
1835 if (m_pVT->IsValid()) { in DoInsertText()
1840 wp = m_pVT->InsertSection(wp); in DoInsertText()
1845 wp = m_pVT->InsertSection(wp); in DoInsertText()
1852 m_pVT->InsertWord(wp, word, GetCharSetFromUnicode(word, charset)); in DoInsertText()