Home | History | Annotate | Download | only in formfiller

Lines Matching refs:pPageView

34 		CPDFSDK_PageView * pPageView = NULL;
36 m_Maps.GetNextAssoc(pos, pPageView, pWnd);
50 void CFFL_FormFiller::SetWindowRect(CPDFSDK_PageView* pPageView, const CPDF_Rect& rcWindow)
52 if (CPWL_Wnd* pWnd = this->GetPDFWindow(pPageView, FALSE))
58 CPDF_Rect CFFL_FormFiller::GetWindowRect(CPDFSDK_PageView* pPageView)
60 if (CPWL_Wnd* pWnd = this->GetPDFWindow(pPageView, FALSE))
68 FX_RECT CFFL_FormFiller::GetViewBBox(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot)
70 ASSERT(pPageView != NULL);
75 if (CPWL_Wnd* pWnd = this->GetPDFWindow(pPageView, FALSE))
82 // pPageView->DocToWindow(rcAnnot, rcWin);
84 CPDF_Rect rcFocus = this->GetFocusBox(pPageView);
93 void CFFL_FormFiller::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
99 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
113 void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
137 void CFFL_FormFiller::OnMouseEnter(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot)
141 void CFFL_FormFiller::OnMouseExit(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot)
147 FX_BOOL CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
149 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
152 FX_RECT rect = this->GetViewBBox(pPageView,pAnnot);
158 return pWnd->OnLButtonDown(WndtoPWL(pPageView, point),nFlags);
164 FX_BOOL CFFL_FormFiller::OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
166 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
168 FX_RECT rcFFL = this->GetViewBBox(pPageView, pAnnot);
170 pWnd->OnLButtonUp(WndtoPWL(pPageView, point),nFlags);
177 FX_BOOL CFFL_FormFiller::OnLButtonDblClk(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
179 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
181 pWnd->OnLButtonDblClk(WndtoPWL(pPageView, point),nFlags);
188 FX_BOOL CFFL_FormFiller::OnMouseMove(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
195 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
197 pWnd->OnMouseMove(WndtoPWL(pPageView, point),nFlags);
204 FX_BOOL CFFL_FormFiller::OnMouseWheel(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, short zDelta, const CPDF_Point& point)
208 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
210 return pWnd->OnMouseWheel(zDelta, WndtoPWL(pPageView, point),nFlags);
216 FX_BOOL CFFL_FormFiller::OnRButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
218 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
220 pWnd->OnRButtonDown(WndtoPWL(pPageView, point),nFlags);
227 FX_BOOL CFFL_FormFiller::OnRButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
229 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
231 pWnd->OnRButtonUp(WndtoPWL(pPageView, point),nFlags);
238 FX_BOOL CFFL_FormFiller::OnRButtonDblClk(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
240 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
242 pWnd->OnRButtonDblClk(WndtoPWL(pPageView, point),nFlags);
253 CPDFSDK_PageView* pPageView = this->GetCurPageView();
254 ASSERT(pPageView != NULL);
256 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
269 CPDFSDK_PageView* pPageView = this->GetCurPageView();
270 ASSERT(pPageView != NULL);
272 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
297 CPDFSDK_PageView* pPageView = pDoc->GetPageView(pPage);
298 ASSERT(pPageView != NULL);
303 if ( (pWnd = GetPDFWindow(pPageView, TRUE)))
314 FX_RECT rcRect = this->GetViewBBox(pPageView,pAnnot);
324 CPDFSDK_PageView* pPageView = this->GetCurPageView();
325 ASSERT(pPageView != NULL);
327 CommitData(pPageView, nFlag);
329 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE))
339 EscapeFiller(pPageView, TRUE);
342 EscapeFiller(pPageView, FALSE);
432 CPWL_Wnd* CFFL_FormFiller::GetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bNew)
434 ASSERT(pPageView != NULL);
438 m_Maps.Lookup(pPageView, pWnd);
449 return this->ResetPDFWindow(pPageView, m_pWidget->GetValueAge() == pPrivateData->nValueAge);
459 pPrivateData->pPageView = pPageView;
465 pWnd = NewPDFWindow(cp, pPageView);
469 m_Maps.SetAt(pPageView, pWnd);
477 void CFFL_FormFiller::DestroyPDFWindow(CPDFSDK_PageView* pPageView)
480 m_Maps.Lookup(pPageView, pWnd);
485 pData->pPageView = NULL;
491 m_Maps.RemoveKey(pPageView);
498 if (pPrivateData->pPageView)
501 pPrivateData->pPageView->GetCurrentMatrix(mtPageView);
579 CPDF_Rect CFFL_FormFiller::GetFocusBox(CPDFSDK_PageView* pPageView)
581 if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
583 CPDF_Rect rcFocus = FFLtoWnd(pPageView, PWLtoFFL(pWnd->GetFocusRect()));
584 ASSERT(pPageView);
585 CPDF_Rect rcPage = pPageView->GetPDFPage()->GetPageBBox();
636 CPDF_Point CFFL_FormFiller::WndtoPWL(CPDFSDK_PageView* pPageView, const CPDF_Point& pt)
638 // ASSERT(pPageView != NULL);
641 // pPageView->WindowToDoc(pt.x, pt.y, point.x, point.y);
647 CPDF_Rect CFFL_FormFiller::FFLtoWnd(CPDFSDK_PageView* pPageView, const CPDF_Rect & rect)
651 // ASSERT(pPageView != NULL);
652 // pPageView->DocToWindow(rect, rcRet);
665 FX_BOOL CFFL_FormFiller::CommitData(CPDFSDK_PageView* pPageView, FX_UINT nFlag)
667 if (IsDataChanged(pPageView))
676 pIFormFiller->OnKeyStrokeCommit(m_pWidget, pPageView, bRC, bExit, nFlag);
680 this->ResetPDFWindow(pPageView, FALSE);
684 pIFormFiller->OnValidate(m_pWidget, pPageView, bRC, bExit, nFlag);
688 this->ResetPDFWindow(pPageView, FALSE);
692 SaveData(pPageView);
694 pIFormFiller->OnCalculate(m_pWidget, pPageView, bExit,nFlag);
697 pIFormFiller->OnFormat(m_pWidget, pPageView, bExit,nFlag);
703 FX_BOOL CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView)
708 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView)
712 void CFFL_FormFiller::GetKeyStrokeData(CPDFSDK_PageView* pPageView, FFL_KeyStrokeData& data)
721 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
727 void CFFL_FormFiller::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
738 void CFFL_FormFiller::SaveState(CPDFSDK_PageView* pPageView)
742 void CFFL_FormFiller::RestoreState(CPDFSDK_PageView* pPageView)
746 CPWL_Wnd* CFFL_FormFiller::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue)
748 return GetPDFWindow(pPageView, FALSE);
766 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, FX_BOOL bDestroyPDFWindow)
770 FX_RECT rcRect = this->GetViewBBox(pPageView, m_pWidget);
774 DestroyPDFWindow(pPageView);
823 void CFFL_Button::OnMouseEnter(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot)
826 FX_RECT rect = this->GetViewBBox(pPageView,pAnnot);
828 // ::InvalidateRect(pPageView->GetPageViewWnd(), &this->GetViewBBox(pPageView, pAnnot), TRUE);
831 void CFFL_Button::OnMouseExit(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot)
835 FX_RECT rect = this->GetViewBBox(pPageView,pAnnot);
837 // ::InvalidateRect(pPageView->GetPageViewWnd(), &this->GetViewBBox(pPageView, pAnnot), TRUE);
843 FX_BOOL CFFL_Button::OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
851 FX_RECT rect = this->GetViewBBox(pPageView, pAnnot);
853 // ::InvalidateRect(pPageView->GetPageViewWnd(), &this->GetViewBBox(pPageView, pAnnot), TRUE);
857 FX_BOOL CFFL_Button::OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
867 FX_RECT rect = this->GetViewBBox(pPageView, pAnnot);
869 // ::InvalidateRect(pPageView->GetPageViewWnd(), &this->GetViewBBox(pPageView, pAnnot), TRUE);
873 FX_BOOL CFFL_Button::OnMouseMove(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
880 void CFFL_Button::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
884 ASSERT(pPageView != NULL);
920 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
924 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);