Lines Matching refs:pWidget
63 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in OnDraw() local
64 if (!IsVisible(pWidget)) in OnDraw()
102 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw()
106 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) in OnDraw()
107 pWidget->DrawShadow(pDevice, pPageView); in OnDraw()
120 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnMouseEnter() local
121 if (pWidget->GetAAction(CPDF_AAction::kCursorEnter).GetDict()) { in OnMouseEnter()
124 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseEnter()
125 pWidget->ClearAppModified(); in OnMouseEnter()
131 pWidget->OnAAction(CPDF_AAction::kCursorEnter, &fa, pPageView); in OnMouseEnter()
136 if (pWidget->IsAppModified()) { in OnMouseEnter()
137 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) { in OnMouseEnter()
139 pWidget->GetValueAge() == nValueAge); in OnMouseEnter()
153 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnMouseExit() local
154 if (pWidget->GetAAction(CPDF_AAction::kCursorExit).GetDict()) { in OnMouseExit()
157 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseExit()
158 pWidget->ClearAppModified(); in OnMouseExit()
164 pWidget->OnAAction(CPDF_AAction::kCursorExit, &fa, pPageView); in OnMouseExit()
169 if (pWidget->IsAppModified()) { in OnMouseExit()
170 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) { in OnMouseExit()
172 nValueAge == pWidget->GetValueAge()); in OnMouseExit()
188 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnLButtonDown() local
190 pWidget->GetAAction(CPDF_AAction::kButtonDown).GetDict()) { in OnLButtonDown()
193 uint32_t nValueAge = pWidget->GetValueAge(); in OnLButtonDown()
194 pWidget->ClearAppModified(); in OnLButtonDown()
200 pWidget->OnAAction(CPDF_AAction::kButtonDown, &fa, pPageView); in OnLButtonDown()
208 if (pWidget->IsAppModified()) { in OnLButtonDown()
209 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) { in OnLButtonDown()
211 nValueAge == pWidget->GetValueAge()); in OnLButtonDown()
226 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnLButtonUp() local
229 switch (pWidget->GetFieldType()) { in OnLButtonUp()
265 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnButtonUp() local
266 if (!pWidget->GetAAction(CPDF_AAction::kButtonUp).GetDict()) in OnButtonUp()
271 uint32_t nAge = pWidget->GetAppearanceAge(); in OnButtonUp()
272 uint32_t nValueAge = pWidget->GetValueAge(); in OnButtonUp()
278 pWidget->OnAAction(CPDF_AAction::kButtonUp, &fa, pPageView); in OnButtonUp()
280 if (!pAnnot->HasObservable() || !IsValidAnnot(pPageView, pWidget)) in OnButtonUp()
282 if (nAge == pWidget->GetAppearanceAge()) in OnButtonUp()
285 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget); in OnButtonUp()
287 pFormFiller->ResetPWLWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnButtonUp()
387 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnSetFocus() local
388 if (pWidget->GetAAction(CPDF_AAction::kGetFocus).GetDict()) { in OnSetFocus()
391 uint32_t nValueAge = pWidget->GetValueAge(); in OnSetFocus()
392 pWidget->ClearAppModified(); in OnSetFocus()
394 CFFL_FormFiller* pFormFiller = GetOrCreateFormFiller(pWidget); in OnSetFocus()
405 pWidget->OnAAction(CPDF_AAction::kGetFocus, &fa, pPageView); in OnSetFocus()
410 if (pWidget->IsAppModified()) { in OnSetFocus()
411 if (CFFL_FormFiller* pFiller = GetFormFiller(pWidget)) { in OnSetFocus()
413 nValueAge == pWidget->GetValueAge()); in OnSetFocus()
442 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnKillFocus() local
443 if (!pWidget->GetAAction(CPDF_AAction::kLoseFocus).GetDict()) in OnKillFocus()
447 pWidget->ClearAppModified(); in OnKillFocus()
449 CPDFSDK_PageView* pPageView = pWidget->GetPageView(); in OnKillFocus()
456 pWidget->OnAAction(CPDF_AAction::kLoseFocus, &fa, pPageView); in OnKillFocus()
461 bool CFFL_InteractiveFormFiller::IsVisible(CPDFSDK_Widget* pWidget) { in IsVisible() argument
462 return pWidget->IsVisible(); in IsVisible()
465 bool CFFL_InteractiveFormFiller::IsReadOnly(CPDFSDK_Widget* pWidget) { in IsReadOnly() argument
466 int nFieldFlags = pWidget->GetFieldFlags(); in IsReadOnly()
471 CPDFSDK_Widget* pWidget) const { in IsFillingAllowed()
472 if (pWidget->GetFieldType() == FormFieldType::kPushButton) in IsFillingAllowed()
492 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in GetOrCreateFormFiller() local
494 switch (pWidget->GetFieldType()) { in GetOrCreateFormFiller()
497 pdfium::MakeUnique<CFFL_PushButton>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
501 pdfium::MakeUnique<CFFL_CheckBox>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
505 pdfium::MakeUnique<CFFL_RadioButton>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
509 pdfium::MakeUnique<CFFL_TextField>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
513 pdfium::MakeUnique<CFFL_ListBox>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
517 pdfium::MakeUnique<CFFL_ComboBox>(m_pFormFillEnv.Get(), pWidget); in GetOrCreateFormFiller()
590 CPDFSDK_Widget* pWidget = pData->pWidget.Get(); in QueryWherePopup() local
591 CPDF_Page* pPage = pWidget->GetPDFPage(); in QueryWherePopup()
596 CFX_FloatRect rcAnnot = pWidget->GetRect(); in QueryWherePopup()
599 switch (pWidget->GetRotate() / 90) { in QueryWherePopup()
651 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnKeyStrokeCommit() local
652 if (!pWidget->GetAAction(CPDF_AAction::kKeyStroke).GetDict()) in OnKeyStrokeCommit()
657 pWidget->ClearAppModified(); in OnKeyStrokeCommit()
666 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget); in OnKeyStrokeCommit()
669 pWidget->OnAAction(CPDF_AAction::kKeyStroke, &fa, pPageView); in OnKeyStrokeCommit()
683 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnValidate() local
684 if (!pWidget->GetAAction(CPDF_AAction::kValidate).GetDict()) in OnValidate()
689 pWidget->ClearAppModified(); in OnValidate()
697 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget); in OnValidate()
700 pWidget->OnAAction(CPDF_AAction::kValidate, &fa, pPageView); in OnValidate()
714 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnCalculate() local
715 if (pWidget) { in OnCalculate()
718 pForm->OnCalculate(pWidget->GetFormField()); in OnCalculate()
729 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnFormat() local
730 ASSERT(pWidget); in OnFormat()
734 Optional<WideString> sValue = pForm->OnFormat(pWidget->GetFormField()); in OnFormat()
739 pForm->ResetFieldAppearance(pWidget->GetFormField(), sValue); in OnFormat()
740 pForm->UpdateField(pWidget->GetFormField()); in OnFormat()
753 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnClick() local
754 if (!pWidget->HasXFAAAction(PDFSDK_XFA_Click)) in OnClick()
758 uint32_t nAge = pWidget->GetAppearanceAge(); in OnClick()
759 uint32_t nValueAge = pWidget->GetValueAge(); in OnClick()
765 pWidget->OnXFAAAction(PDFSDK_XFA_Click, &fa, pPageView); in OnClick()
767 if (!pAnnot->HasObservable() || !IsValidAnnot(pPageView, pWidget)) in OnClick()
769 if (nAge == pWidget->GetAppearanceAge()) in OnClick()
772 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) in OnClick()
773 pFormFiller->ResetPWLWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnClick()
783 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnFull() local
784 if (!pWidget->HasXFAAAction(PDFSDK_XFA_Full)) in OnFull()
788 uint32_t nAge = pWidget->GetAppearanceAge(); in OnFull()
789 uint32_t nValueAge = pWidget->GetValueAge(); in OnFull()
795 pWidget->OnXFAAAction(PDFSDK_XFA_Full, &fa, pPageView); in OnFull()
797 if (!pAnnot->HasObservable() || !IsValidAnnot(pPageView, pWidget)) in OnFull()
799 if (nAge == pWidget->GetAppearanceAge()) in OnFull()
802 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) in OnFull()
803 pFormFiller->ResetPWLWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnFull()
814 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnPreOpen() local
815 if (!pWidget->HasXFAAAction(PDFSDK_XFA_PreOpen)) in OnPreOpen()
819 uint32_t nAge = pWidget->GetAppearanceAge(); in OnPreOpen()
820 uint32_t nValueAge = pWidget->GetValueAge(); in OnPreOpen()
826 pWidget->OnXFAAAction(PDFSDK_XFA_PreOpen, &fa, pPageView); in OnPreOpen()
828 if (!pAnnot->HasObservable() || !IsValidAnnot(pPageView, pWidget)) in OnPreOpen()
830 if (nAge == pWidget->GetAppearanceAge()) in OnPreOpen()
833 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) in OnPreOpen()
834 pFormFiller->ResetPWLWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnPreOpen()
845 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnPostOpen() local
846 if (!pWidget->HasXFAAAction(PDFSDK_XFA_PostOpen)) in OnPostOpen()
850 uint32_t nAge = pWidget->GetAppearanceAge(); in OnPostOpen()
851 uint32_t nValueAge = pWidget->GetValueAge(); in OnPostOpen()
857 pWidget->OnXFAAAction(PDFSDK_XFA_PostOpen, &fa, pPageView); in OnPostOpen()
859 if (!pAnnot->HasObservable() || !IsValidAnnot(pPageView, pWidget)) in OnPostOpen()
861 if (nAge == pWidget->GetAppearanceAge()) in OnPostOpen()
864 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget)) in OnPostOpen()
865 pFormFiller->ResetPWLWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnPostOpen()
887 ASSERT(privateData.pWidget); in OnBeforeKeyStroke()
900 !privateData.pWidget->GetAAction(CPDF_AAction::kKeyStroke).GetDict()) { in OnBeforeKeyStroke()
907 uint32_t nAge = privateData.pWidget->GetAppearanceAge(); in OnBeforeKeyStroke()
908 uint32_t nValueAge = privateData.pWidget->GetValueAge(); in OnBeforeKeyStroke()
927 bool action_status = privateData.pWidget->OnAAction( in OnBeforeKeyStroke()
938 if (nAge != privateData.pWidget->GetAppearanceAge()) { in OnBeforeKeyStroke()
940 privateData.pPageView, nValueAge == privateData.pWidget->GetValueAge()); in OnBeforeKeyStroke()
965 ASSERT(pData->pWidget); in OnPopupPreOpen()
979 ASSERT(pData->pWidget); in OnPopupPostOpen()