Home | History | Annotate | Download | only in formfiller

Lines Matching refs:pAnnot

36                                                CPDFSDK_Annot* pAnnot,
38 return pAnnot->GetRect().Contains(point);
42 CPDFSDK_Annot* pAnnot) {
43 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false))
44 return pFormFiller->GetViewBBox(pPageView, pAnnot);
48 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();
54 CPDFSDK_Annot* pAnnot,
58 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
63 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) {
65 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device);
66 pAnnot->GetPDFPage();
68 if (m_pFormFillEnv->GetFocusAnnot() == pAnnot) {
96 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) {
97 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device);
106 void CFFL_InteractiveFormFiller::OnDelete(CPDFSDK_Annot* pAnnot) {
107 UnRegisterFormFiller(pAnnot);
112 CPDFSDK_Annot::ObservedPtr* pAnnot,
114 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
116 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
129 if (!(*pAnnot))
140 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), true))
141 pFormFiller->OnMouseEnter(pPageView, pAnnot->Get());
145 CPDFSDK_Annot::ObservedPtr* pAnnot,
147 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
149 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
163 if (!(*pAnnot))
174 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false))
175 pFormFiller->OnMouseExit(pPageView, pAnnot->Get());
180 CPDFSDK_Annot::ObservedPtr* pAnnot,
183 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
185 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
186 if (Annot_HitTest(pPageView, pAnnot->Get(), point) &&
200 if (!(*pAnnot))
203 if (!IsValidAnnot(pPageView, pAnnot->Get()))
214 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false))
215 return pFormFiller->OnLButtonDown(pPageView, pAnnot->Get(), nFlags, point);
221 CPDFSDK_Annot::ObservedPtr* pAnnot,
224 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
225 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
231 if (GetViewBBox(pPageView, pAnnot->Get())
233 m_pFormFillEnv->SetFocusAnnot(pAnnot);
236 m_pFormFillEnv->SetFocusAnnot(pAnnot);
241 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false))
242 bRet = pFormFiller->OnLButtonUp(pPageView, pAnnot->Get(), nFlags, point);
244 if (m_pFormFillEnv->GetFocusAnnot() == pAnnot->Get()) {
247 OnButtonUp(pAnnot, pPageView, bReset, bExit, nFlags);
248 if (!pAnnot || bExit)
252 if (!pAnnot || bExit)
259 void CFFL_InteractiveFormFiller::OnButtonUp(CPDFSDK_Annot::ObservedPtr* pAnnot,
265 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
278 if (!(*pAnnot) || !IsValidAnnot(pPageView, pWidget)) {
295 CPDFSDK_Annot::ObservedPtr* pAnnot,
298 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
299 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false);
301 pFormFiller->OnLButtonDblClk(pPageView, pAnnot->Get(), nFlags, point);
305 CPDFSDK_Annot::ObservedPtr* pAnnot,
308 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
309 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), true);
311 pFormFiller->OnMouseMove(pPageView, pAnnot->Get(), nFlags, point);
316 CPDFSDK_Annot::ObservedPtr* pAnnot,
320 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
321 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false);
323 pFormFiller->OnMouseWheel(pPageView, pAnnot->Get(), nFlags, zDelta,
329 CPDFSDK_Annot::ObservedPtr* pAnnot,
332 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
333 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false);
335 pFormFiller->OnRButtonDown(pPageView, pAnnot->Get(), nFlags, point);
339 CPDFSDK_Annot::ObservedPtr* pAnnot,
342 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
343 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false);
345 pFormFiller->OnRButtonUp(pPageView, pAnnot->Get(), nFlags, point);
348 bool CFFL_InteractiveFormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot,
351 ASSERT(pAnnot->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
353 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) {
354 return pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlags);
360 bool CFFL_InteractiveFormFiller::OnChar(CPDFSDK_Annot* pAnnot,
363 ASSERT(pAnnot->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
367 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false))
368 return pFormFiller->OnChar(pAnnot, nChar, nFlags);
373 bool CFFL_InteractiveFormFiller::OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
375 if (!(*pAnnot))
378 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
380 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
392 CPDFSDK_PageView* pPageView = (*pAnnot)->GetPageView();
401 if (!(*pAnnot))
413 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), true))
414 pFormFiller->SetFocusForAnnot(pAnnot->Get(), nFlag);
419 bool CFFL_InteractiveFormFiller::OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
421 if (!(*pAnnot))
424 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET);
425 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot->Get(), false)) {
426 pFormFiller->KillFocusForAnnot(pAnnot->Get(), nFlag);
428 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
442 if (!(*pAnnot))
472 CPDFSDK_Annot* pAnnot,
474 auto it = m_Maps.find(pAnnot);
481 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
512 m_Maps[pAnnot].reset(pFormFiller);
516 void CFFL_InteractiveFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) {
517 if (pAnnot)
518 UnRegisterFormFiller(pAnnot);
521 void CFFL_InteractiveFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) {
522 auto it = m_Maps.find(pAnnot);
603 CPDFSDK_Annot::ObservedPtr* pAnnot,
609 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
626 if (!(*pAnnot))
635 void CFFL_InteractiveFormFiller::OnValidate(CPDFSDK_Annot::ObservedPtr* pAnnot,
641 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get());
657 if (!(*pAnnot))
873 CPDFSDK_Annot* pAnnot) {
874 return pPageView && pPageView->IsValidAnnot(pAnnot->GetPDFAnnot());