• Home
  • Raw
  • Download

Lines Matching refs:pWidget

61   CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot);  in OnDraw()  local
62 if (!IsVisible(pWidget)) in OnDraw()
103 pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, in OnDraw()
107 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) in OnDraw()
108 pWidget->DrawShadow(pDevice, pPageView); in OnDraw()
121 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnMouseEnter() local
122 if (pWidget->GetAAction(CPDF_AAction::CursorEnter).GetDict()) { in OnMouseEnter()
125 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseEnter()
126 pWidget->ClearAppModified(); in OnMouseEnter()
132 pWidget->OnAAction(CPDF_AAction::CursorEnter, fa, pPageView); in OnMouseEnter()
137 if (pWidget->IsAppModified()) { in OnMouseEnter()
138 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) { in OnMouseEnter()
140 pWidget->GetValueAge() == nValueAge); in OnMouseEnter()
154 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnMouseExit() local
155 if (pWidget->GetAAction(CPDF_AAction::CursorExit).GetDict()) { in OnMouseExit()
158 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseExit()
159 pWidget->ClearAppModified(); in OnMouseExit()
165 pWidget->OnAAction(CPDF_AAction::CursorExit, fa, pPageView); in OnMouseExit()
170 if (pWidget->IsAppModified()) { in OnMouseExit()
171 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) { in OnMouseExit()
173 nValueAge == pWidget->GetValueAge()); in OnMouseExit()
189 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnLButtonDown() local
191 pWidget->GetAAction(CPDF_AAction::ButtonDown).GetDict()) { in OnLButtonDown()
194 uint32_t nValueAge = pWidget->GetValueAge(); in OnLButtonDown()
195 pWidget->ClearAppModified(); in OnLButtonDown()
201 pWidget->OnAAction(CPDF_AAction::ButtonDown, fa, pPageView); in OnLButtonDown()
209 if (pWidget->IsAppModified()) { in OnLButtonDown()
210 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) { in OnLButtonDown()
212 nValueAge == pWidget->GetValueAge()); in OnLButtonDown()
227 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnLButtonUp() local
230 switch (pWidget->GetFieldType()) { in OnLButtonUp()
266 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnButtonUp() local
267 if (!pWidget->GetAAction(CPDF_AAction::ButtonUp).GetDict()) in OnButtonUp()
272 uint32_t nAge = pWidget->GetAppearanceAge(); in OnButtonUp()
273 uint32_t nValueAge = pWidget->GetValueAge(); in OnButtonUp()
279 pWidget->OnAAction(CPDF_AAction::ButtonUp, fa, pPageView); in OnButtonUp()
281 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) in OnButtonUp()
283 if (nAge == pWidget->GetAppearanceAge()) in OnButtonUp()
286 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false); in OnButtonUp()
288 pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnButtonUp()
374 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnSetFocus() local
375 if (pWidget->GetAAction(CPDF_AAction::GetFocus).GetDict()) { in OnSetFocus()
378 uint32_t nValueAge = pWidget->GetValueAge(); in OnSetFocus()
379 pWidget->ClearAppModified(); in OnSetFocus()
381 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, true); in OnSetFocus()
392 pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView); in OnSetFocus()
397 if (pWidget->IsAppModified()) { in OnSetFocus()
398 if (CFFL_FormFiller* pFiller = GetFormFiller(pWidget, false)) { in OnSetFocus()
400 nValueAge == pWidget->GetValueAge()); in OnSetFocus()
429 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnKillFocus() local
430 if (!pWidget->GetAAction(CPDF_AAction::LoseFocus).GetDict()) in OnKillFocus()
434 pWidget->ClearAppModified(); in OnKillFocus()
436 CPDFSDK_PageView* pPageView = pWidget->GetPageView(); in OnKillFocus()
443 pWidget->OnAAction(CPDF_AAction::LoseFocus, fa, pPageView); in OnKillFocus()
448 bool CFFL_InteractiveFormFiller::IsVisible(CPDFSDK_Widget* pWidget) { in IsVisible() argument
449 return pWidget->IsVisible(); in IsVisible()
452 bool CFFL_InteractiveFormFiller::IsReadOnly(CPDFSDK_Widget* pWidget) { in IsReadOnly() argument
453 int nFieldFlags = pWidget->GetFieldFlags(); in IsReadOnly()
457 bool CFFL_InteractiveFormFiller::IsFillingAllowed(CPDFSDK_Widget* pWidget) { in IsFillingAllowed() argument
458 if (pWidget->GetFieldType() == FormFieldType::kPushButton) in IsFillingAllowed()
461 CPDF_Page* pPage = pWidget->GetPDFPage(); in IsFillingAllowed()
479 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in GetFormFiller() local
480 FormFieldType fieldType = pWidget->GetFieldType(); in GetFormFiller()
484 pFormFiller = new CFFL_PushButton(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
487 pFormFiller = new CFFL_CheckBox(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
490 pFormFiller = new CFFL_RadioButton(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
493 pFormFiller = new CFFL_TextField(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
496 pFormFiller = new CFFL_ListBox(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
499 pFormFiller = new CFFL_ComboBox(m_pFormFillEnv.Get(), pWidget); in GetFormFiller()
545 CPDFSDK_Widget* pWidget = pData->pWidget; in QueryWherePopup() local
546 CPDF_Page* pPage = pWidget->GetPDFPage(); in QueryWherePopup()
551 CFX_FloatRect rcAnnot = pWidget->GetRect(); in QueryWherePopup()
554 switch (pWidget->GetRotate() / 90) { in QueryWherePopup()
606 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnKeyStrokeCommit() local
607 if (!pWidget->GetAAction(CPDF_AAction::KeyStroke).GetDict()) in OnKeyStrokeCommit()
612 pWidget->ClearAppModified(); in OnKeyStrokeCommit()
621 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false); in OnKeyStrokeCommit()
624 pWidget->OnAAction(CPDF_AAction::KeyStroke, fa, pPageView); in OnKeyStrokeCommit()
638 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnValidate() local
639 if (!pWidget->GetAAction(CPDF_AAction::Validate).GetDict()) in OnValidate()
644 pWidget->ClearAppModified(); in OnValidate()
652 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false); in OnValidate()
655 pWidget->OnAAction(CPDF_AAction::Validate, fa, pPageView); in OnValidate()
669 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnCalculate() local
670 if (pWidget) { in OnCalculate()
672 pInterForm->OnCalculate(pWidget->GetFormField()); in OnCalculate()
683 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnFormat() local
684 ASSERT(pWidget); in OnFormat()
688 WideString sValue = pInterForm->OnFormat(pWidget->GetFormField(), bFormatted); in OnFormat()
693 pInterForm->ResetFieldAppearance(pWidget->GetFormField(), &sValue, true); in OnFormat()
694 pInterForm->UpdateField(pWidget->GetFormField()); in OnFormat()
707 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnClick() local
708 if (!pWidget->HasXFAAAction(PDFSDK_XFA_Click)) in OnClick()
712 uint32_t nAge = pWidget->GetAppearanceAge(); in OnClick()
713 uint32_t nValueAge = pWidget->GetValueAge(); in OnClick()
719 pWidget->OnXFAAAction(PDFSDK_XFA_Click, fa, pPageView); in OnClick()
721 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) in OnClick()
723 if (nAge == pWidget->GetAppearanceAge()) in OnClick()
726 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) in OnClick()
727 pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnClick()
737 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnFull() local
738 if (!pWidget->HasXFAAAction(PDFSDK_XFA_Full)) in OnFull()
742 uint32_t nAge = pWidget->GetAppearanceAge(); in OnFull()
743 uint32_t nValueAge = pWidget->GetValueAge(); in OnFull()
749 pWidget->OnXFAAAction(PDFSDK_XFA_Full, fa, pPageView); in OnFull()
751 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) in OnFull()
753 if (nAge == pWidget->GetAppearanceAge()) in OnFull()
756 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) in OnFull()
757 pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnFull()
767 ASSERT(pData->pWidget); in OnPopupPreOpen()
769 CPDFSDK_Annot::ObservedPtr pObserved(pData->pWidget); in OnPopupPreOpen()
778 ASSERT(pData->pWidget); in OnPopupPostOpen()
780 CPDFSDK_Annot::ObservedPtr pObserved(pData->pWidget); in OnPopupPostOpen()
790 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnPreOpen() local
791 if (!pWidget->HasXFAAAction(PDFSDK_XFA_PreOpen)) in OnPreOpen()
795 uint32_t nAge = pWidget->GetAppearanceAge(); in OnPreOpen()
796 uint32_t nValueAge = pWidget->GetValueAge(); in OnPreOpen()
802 pWidget->OnXFAAAction(PDFSDK_XFA_PreOpen, fa, pPageView); in OnPreOpen()
804 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) in OnPreOpen()
806 if (nAge == pWidget->GetAppearanceAge()) in OnPreOpen()
809 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) in OnPreOpen()
810 pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnPreOpen()
821 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnPostOpen() local
822 if (!pWidget->HasXFAAAction(PDFSDK_XFA_PostOpen)) in OnPostOpen()
826 uint32_t nAge = pWidget->GetAppearanceAge(); in OnPostOpen()
827 uint32_t nValueAge = pWidget->GetValueAge(); in OnPostOpen()
833 pWidget->OnXFAAAction(PDFSDK_XFA_PostOpen, fa, pPageView); in OnPostOpen()
835 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) in OnPostOpen()
837 if (nAge == pWidget->GetAppearanceAge()) in OnPostOpen()
840 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, false)) in OnPostOpen()
841 pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge()); in OnPostOpen()
862 ASSERT(privateData.pWidget); in OnBeforeKeyStroke()
864 CFFL_FormFiller* pFormFiller = GetFormFiller(privateData.pWidget, false); in OnBeforeKeyStroke()
868 CPDFSDK_Annot::ObservedPtr pObserved(privateData.pWidget); in OnBeforeKeyStroke()
875 !privateData.pWidget->GetAAction(CPDF_AAction::KeyStroke).GetDict()) { in OnBeforeKeyStroke()
882 uint32_t nAge = privateData.pWidget->GetAppearanceAge(); in OnBeforeKeyStroke()
883 uint32_t nValueAge = privateData.pWidget->GetValueAge(); in OnBeforeKeyStroke()
901 CPDFSDK_Annot::ObservedPtr pObserved(privateData.pWidget); in OnBeforeKeyStroke()
902 bool action_status = privateData.pWidget->OnAAction( in OnBeforeKeyStroke()
905 if (!pObserved || !IsValidAnnot(privateData.pPageView, privateData.pWidget)) in OnBeforeKeyStroke()
912 if (nAge != privateData.pWidget->GetAppearanceAge()) { in OnBeforeKeyStroke()
914 privateData.pPageView, nValueAge == privateData.pWidget->GetValueAge()); in OnBeforeKeyStroke()
926 if (pFormFillEnv->GetFocusAnnot() == privateData.pWidget) in OnBeforeKeyStroke()