Home | History | Annotate | Download | only in formfiller

Lines Matching full:pannot

34 		CPDFSDK_Annot * pAnnot = NULL;

36 m_Maps.GetNextAssoc(pos,pAnnot,pFormFiller);
42 FX_BOOL CFFL_IFormFiller::Annot_HitTest(CPDFSDK_PageView* pPageView,CPDFSDK_Annot* pAnnot, CPDF_Point point)
44 CPDF_Rect rc = pAnnot->GetRect();
50 FX_RECT CFFL_IFormFiller::GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot)
52 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
54 return pFormFiller->GetViewBBox(pPageView, pAnnot);
59 ASSERT(pAnnot != NULL);
61 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();
76 void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
81 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
85 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
89 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
91 pAnnot->GetPDFPage();
97 if (pDocument->GetFocusAnnot() == pAnnot)
127 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
128 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
140 void CFFL_IFormFiller::OnCreate(CPDFSDK_Annot* pAnnot)
142 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
144 pFormFiller->OnCreate(pAnnot);
148 void CFFL_IFormFiller::OnLoad(CPDFSDK_Annot* pAnnot)
150 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
152 pFormFiller->OnLoad(pAnnot);
156 void CFFL_IFormFiller::OnDelete(CPDFSDK_Annot* pAnnot)
158 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
160 pFormFiller->OnDelete(pAnnot);
163 UnRegisterFormFiller(pAnnot);
166 void CFFL_IFormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlag)
168 ASSERT(pAnnot != NULL);
169 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
173 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
192 //if ( !IsValidAnnot(pPageView, pAnnot) ) return;
204 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
206 pFormFiller->OnMouseEnter(pPageView, pAnnot);
210 void CFFL_IFormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlag)
212 ASSERT(pAnnot != NULL);
213 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
217 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
236 //if (!IsValidAnnot(pPageView, pAnnot)) return;
248 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
250 pFormFiller->OnMouseExit(pPageView, pAnnot);
254 FX_BOOL CFFL_IFormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
256 ASSERT(pAnnot != NULL);
257 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
261 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
262 if (Annot_HitTest(pPageView, pAnnot, point) && pWidget->GetAAction(CPDF_AAction::ButtonDown))
279 if (!IsValidAnnot(pPageView, pAnnot)) return TRUE;
291 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
293 return pFormFiller->OnLButtonDown(pPageView, pAnnot, nFlags, point);
299 FX_BOOL CFFL_IFormFiller::OnLButtonUp(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
301 ASSERT(pAnnot != NULL);
302 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
304 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
305 // CReader_Page* pPage = pAnnot->GetPage();
315 if (GetViewBBox(pPageView, pAnnot).Contains((int)point.x, (int)point.y))
317 pDocument->SetFocusAnnot(pAnnot);
321 pDocument->SetFocusAnnot(pAnnot);
327 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
329 bRet = pFormFiller->OnLButtonUp(pPageView, pAnnot, nFlags, point);
332 if (pDocument->GetFocusAnnot() == pAnnot)
386 FX_BOOL CFFL_IFormFiller::OnLButtonDblClk(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
388 ASSERT(pAnnot != NULL);
389 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
391 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
393 return pFormFiller->OnLButtonDblClk(pPageView, pAnnot, nFlags, point);
399 FX_BOOL CFFL_IFormFiller::OnMouseMove(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
401 ASSERT(pAnnot != NULL);
402 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
405 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
407 return pFormFiller->OnMouseMove(pPageView, pAnnot, nFlags, point);
413 FX_BOOL CFFL_IFormFiller::OnMouseWheel(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, short zDelta, const CPDF_Point& point)
415 ASSERT(pAnnot != NULL);
416 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
418 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
420 return pFormFiller->OnMouseWheel(pPageView, pAnnot, nFlags, zDelta, point);
426 FX_BOOL CFFL_IFormFiller::OnRButtonDown(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
428 ASSERT(pAnnot != NULL);
429 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
431 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
433 return pFormFiller->OnRButtonDown(pPageView, pAnnot, nFlags, point);
439 FX_BOOL CFFL_IFormFiller::OnRButtonUp(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
441 ASSERT(pAnnot != NULL);
442 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
444 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
446 return pFormFiller->OnRButtonUp(pPageView, pAnnot, nFlags, point);
452 FX_BOOL CFFL_IFormFiller::OnRButtonDblClk(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
454 ASSERT(pAnnot != NULL);
455 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
457 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
459 return pFormFiller->OnRButtonDblClk(pPageView, pAnnot, nFlags, point);
465 FX_BOOL CFFL_IFormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot, FX_UINT nKeyCode, FX_UINT nFlags)
467 ASSERT(pAnnot != NULL);
468 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
470 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
472 return pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlags);
478 FX_BOOL CFFL_IFormFiller::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags)
480 ASSERT(pAnnot != NULL);
481 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
485 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
487 return pFormFiller->OnChar(pAnnot, nChar, nFlags);
493 void CFFL_IFormFiller::OnDeSelected(CPDFSDK_Annot* pAnnot)
495 ASSERT(pAnnot != NULL);
496 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
498 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
500 pFormFiller->OnDeSelected(pAnnot);
504 void CFFL_IFormFiller::OnSelected(CPDFSDK_Annot* pAnnot)
506 ASSERT(pAnnot != NULL);
507 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
509 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
511 pFormFiller->OnSelected(pAnnot);
515 FX_BOOL CFFL_IFormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag)
517 if(!pAnnot) return FALSE;
518 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
522 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
531 CPDFSDK_PageView* pPageView = pAnnot->GetPageView();
546 // if (!IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pAnnot)) return FALSE;
558 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
560 if (pFormFiller->OnSetFocus(pAnnot, nFlag))
571 FX_BOOL CFFL_IFormFiller::OnKillFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag)
573 if(!pAnnot) return FALSE;
574 ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
576 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
578 if (pFormFiller->OnKillFocus(pAnnot, nFlag))
582 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
646 CFFL_FormFiller* CFFL_IFormFiller::GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister)
648 // ASSERT(pAnnot != NULL);
649 // ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
652 m_Maps.Lookup(pAnnot, pFormFiller);
659 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
690 m_Maps.SetAt(pAnnot, pFormFiller);
697 void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot)
699 if ( pAnnot != NULL )
701 UnRegisterFormFiller( pAnnot );
705 void CFFL_IFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot)
709 if (m_Maps.Lookup(pAnnot,pFormFiller))
713 m_Maps.RemoveKey(pAnnot);
1040 FX_BOOL CFFL_IFormFiller::IsValidAnnot(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot)
1044 ASSERT(pAnnot != NULL);
1047 return pPageView->IsValidAnnot(pAnnot->GetPDFAnnot());