• Home
  • Raw
  • Download

Lines Matching refs:pPageView

49 FX_RECT CFFL_FormFiller::GetViewBBox(CPDFSDK_PageView* pPageView,  in GetViewBBox()  argument
51 ASSERT(pPageView); in GetViewBBox()
55 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false)) in GetViewBBox()
59 CFX_FloatRect rcFocus = GetFocusBox(pPageView); in GetViewBBox()
70 void CFFL_FormFiller::OnDraw(CPDFSDK_PageView* pPageView, in OnDraw() argument
76 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false)) { in OnDraw()
90 void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView* pPageView, in OnDrawDeactive() argument
98 void CFFL_FormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, in OnMouseEnter() argument
101 void CFFL_FormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, in OnMouseExit() argument
107 bool CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, in OnLButtonDown() argument
111 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, true); in OnLButtonDown()
116 FX_RECT rect = GetViewBBox(pPageView, pAnnot); in OnLButtonDown()
120 return pWnd->OnLButtonDown(WndtoPWL(pPageView, point), nFlags); in OnLButtonDown()
123 bool CFFL_FormFiller::OnLButtonUp(CPDFSDK_PageView* pPageView, in OnLButtonUp() argument
127 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnLButtonUp()
131 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in OnLButtonUp()
132 pWnd->OnLButtonUp(WndtoPWL(pPageView, point), nFlags); in OnLButtonUp()
136 bool CFFL_FormFiller::OnLButtonDblClk(CPDFSDK_PageView* pPageView, in OnLButtonDblClk() argument
140 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnLButtonDblClk()
144 pWnd->OnLButtonDblClk(WndtoPWL(pPageView, point), nFlags); in OnLButtonDblClk()
148 bool CFFL_FormFiller::OnMouseMove(CPDFSDK_PageView* pPageView, in OnMouseMove() argument
152 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnMouseMove()
156 pWnd->OnMouseMove(WndtoPWL(pPageView, point), nFlags); in OnMouseMove()
160 bool CFFL_FormFiller::OnMouseWheel(CPDFSDK_PageView* pPageView, in OnMouseWheel() argument
168 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, true); in OnMouseWheel()
169 return pWnd && pWnd->OnMouseWheel(zDelta, WndtoPWL(pPageView, point), nFlags); in OnMouseWheel()
172 bool CFFL_FormFiller::OnRButtonDown(CPDFSDK_PageView* pPageView, in OnRButtonDown() argument
176 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, true); in OnRButtonDown()
180 pWnd->OnRButtonDown(WndtoPWL(pPageView, point), nFlags); in OnRButtonDown()
184 bool CFFL_FormFiller::OnRButtonUp(CPDFSDK_PageView* pPageView, in OnRButtonUp() argument
188 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnRButtonUp()
192 pWnd->OnRButtonUp(WndtoPWL(pPageView, point), nFlags); in OnRButtonUp()
202 CPDFSDK_PageView* pPageView = GetCurPageView(true); in OnKeyDown() local
203 ASSERT(pPageView); in OnKeyDown()
205 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnKeyDown()
215 CPDFSDK_PageView* pPageView = GetCurPageView(true); in OnChar() local
216 ASSERT(pPageView); in OnChar()
218 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in OnChar()
226 CPDFSDK_PageView* pPageView = GetCurPageView(true); in GetSelectedText() local
227 ASSERT(pPageView); in GetSelectedText()
229 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in GetSelectedText()
238 CPDFSDK_PageView* pPageView = GetCurPageView(true); in ReplaceSelection() local
239 ASSERT(pPageView); in ReplaceSelection()
241 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in ReplaceSelection()
251 CPDFSDK_PageView* pPageView = m_pFormFillEnv->GetPageView(pPage, true); in SetFocusForAnnot() local
252 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, true)) in SetFocusForAnnot()
256 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in SetFocusForAnnot()
263 CPDFSDK_PageView* pPageView = GetCurPageView(false); in KillFocusForAnnot() local
264 if (!pPageView || !CommitData(pPageView, nFlag)) in KillFocusForAnnot()
266 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false)) in KillFocusForAnnot()
280 EscapeFiller(pPageView, bDestroyPDFWindow); in KillFocusForAnnot()
333 CPWL_Wnd* CFFL_FormFiller::GetPDFWindow(CPDFSDK_PageView* pPageView, in GetPDFWindow() argument
335 ASSERT(pPageView); in GetPDFWindow()
337 auto it = m_Maps.find(pPageView); in GetPDFWindow()
349 pPrivateData->pPageView = pPageView; in GetPDFWindow()
354 m_Maps[pPageView] = pNewWnd; in GetPDFWindow()
363 pPageView, pPrivateData->nWidgetValueAge == m_pWidget->GetValueAge()); in GetPDFWindow()
366 void CFFL_FormFiller::DestroyPDFWindow(CPDFSDK_PageView* pPageView) { in DestroyPDFWindow() argument
367 auto it = m_Maps.find(pPageView); in DestroyPDFWindow()
382 if (!pPrivateData || !pPrivateData->pPageView) in GetWindowMatrix()
386 pPrivateData->pPageView->GetCurrentMatrix(mtPageView); in GetWindowMatrix()
431 CFX_FloatRect CFFL_FormFiller::GetFocusBox(CPDFSDK_PageView* pPageView) { in GetFocusBox() argument
432 CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); in GetFocusBox()
436 CFX_FloatRect rcFocus = FFLtoWnd(pPageView, PWLtoFFL(pWnd->GetFocusRect())); in GetFocusBox()
437 return pPageView->GetPDFPage()->GetPageBBox().Contains(rcFocus) in GetFocusBox()
458 CFX_PointF CFFL_FormFiller::WndtoPWL(CPDFSDK_PageView* pPageView, in WndtoPWL() argument
463 CFX_FloatRect CFFL_FormFiller::FFLtoWnd(CPDFSDK_PageView* pPageView, in FFLtoWnd() argument
468 bool CFFL_FormFiller::CommitData(CPDFSDK_PageView* pPageView, uint32_t nFlag) { in CommitData() argument
469 if (!IsDataChanged(pPageView)) in CommitData()
476 if (!pFormFiller->OnKeyStrokeCommit(&pObserved, pPageView, nFlag)) { in CommitData()
479 ResetPDFWindow(pPageView, false); in CommitData()
485 if (!pFormFiller->OnValidate(&pObserved, pPageView, nFlag)) { in CommitData()
488 ResetPDFWindow(pPageView, false); in CommitData()
494 SaveData(pPageView); // may invoking JS to delete this widget. in CommitData()
498 pFormFiller->OnCalculate(&pObserved, pPageView, nFlag); in CommitData()
502 pFormFiller->OnFormat(&pObserved, pPageView, nFlag); in CommitData()
509 bool CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView) { in IsDataChanged() argument
513 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView) {} in SaveData() argument
516 bool CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) { in IsFieldFull() argument
525 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, in GetActionData() argument
531 void CFFL_FormFiller::SetActionData(CPDFSDK_PageView* pPageView, in SetActionData() argument
541 void CFFL_FormFiller::SaveState(CPDFSDK_PageView* pPageView) {} in SaveState() argument
543 void CFFL_FormFiller::RestoreState(CPDFSDK_PageView* pPageView) {} in RestoreState() argument
545 CPWL_Wnd* CFFL_FormFiller::ResetPDFWindow(CPDFSDK_PageView* pPageView, in ResetPDFWindow() argument
547 return GetPDFWindow(pPageView, false); in ResetPDFWindow()
556 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, in EscapeFiller() argument
560 InvalidateRect(GetViewBBox(pPageView, m_pWidget.Get())); in EscapeFiller()
562 DestroyPDFWindow(pPageView); in EscapeFiller()